清除本地缓存 [英] Clear local cache

查看:338
本文介绍了清除本地缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用本地缓存,并保持本地缓存与缓存主机同步 使用通知机制。

我知道可能会丢失通知,在这种情况下,本地缓存可能会与缓存主机失去同步。

是吗可以检测到通知丢失时的情况,如果是,那么如何重新同步本地缓存? (也许清除通知失败时的本地缓存?)

谢谢,

吉尔

 

 

推荐答案

Gil,

您可以使用DataCache.AddFailureNotificationCallback方法检测错过的通知( http://msdn.microsoft.com/en-us /library/microsoft.applicationserver.caching.datacache.addfailurenotificationcallback(WS.10).aspx )。
请参阅

You can detect missed notifications with the DataCache.AddFailureNotificationCallback Method (http://msdn.microsoft.com/en-us/library/microsoft.applicationserver.caching.datacache.addfailurenotificationcallback(WS.10).aspx). See

添加失败通知回调(Windows Server AppFabric缓存)
Add a Failure Notification Callback (Windows Server AppFabric Caching)


这篇关于清除本地缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆