自动更新Appfabric缓存 [英] Automatically Updating Appfabric Cache

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

问题描述

有没有办法在数据库更改时更新appfabric缓存,然后才会自动更新。


并自动更新所有相应客户端上的本地缓存。

解决方案

在App-fabric缓存中无法自动执行此操作。一旦数据在DB中发生变化,您将明确更新缓存。 / p>

在SqlServer 2005之后,您可以注册数据库更新通知,并且在收到此类通知后,可以更新缓存。


Is there any way to update appfabric cache when database changes then only it gets automatically update.

And also updating local cache on all respective clients automatically.

解决方案

There is no way of doing it automatically in App-fabric caching.Once the data changes in DB, you will have explicitly update the cache.

In SqlServer 2005 onwards you can register for notification for DB update and on receiving such notification, cache can be updated.


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

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