简体   繁体   English

如何在WSO2 ESB中刷新缓存介体

[英]How to refresh cache mediator in wso2 esb

Was going through the cache mediator in ESB and planning to use it. 正在检查ESB中的缓存介体并计划使用它。 As I understood,cache mediator calls the end point if the request is not cached and returns the same response for subsequent requests. 据我了解,如果请求未缓存,则缓存调解器将调用端点,并为后续请求返回相同的响应。 In my case if the end point service is updated to return different out put then how does ESB knows that the end point result is updated and need to refresh the cache in ESB. 在我的情况下,如果端点服务已更新以返回不同的输出,那么ESB如何知道端点结果已更新并且需要刷新ESB中的缓存。 In nutshell I would like to know is there any way to invalidate cache in WSO2 ESB. 简而言之,我想知道有什么方法可以使WSO2 ESB中的缓存无效。 Not seeing anything so far. 到目前为止没有看到任何东西。

The ESB cache implementation does not contain direct support for cache synchronization and cache invalidation. ESB缓存实现不包含对缓存同步和缓存无效的直接支持。 You need to build a service endpoint that will receive data modification messages and either invalidate or update the cache entry. 您需要构建一个服务端点,该端点将接收数据修改消息,并使缓存条目无效或更新。

根据当前的缓存实现,它为请求生成一个哈希,并获取特定哈希的缓存响应,并且在当前缓存时间到期后刷新缓存的响应

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM