App Fabric本地缓存 [英] App Fabric local cache

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

问题描述

我正在使用App Fabric进行缓存。我发现(通过测试)从缓存访问数据比直接访问数据库花费的时间更长,所以我启用了本地缓存。我将本地缓存设置为在6小时后过期。本地缓存工作非常好,除了
,有时(通过用户体验)我觉得它再次检索数据。导致本地缓存在6小时之前到期可能是错误的。


有没有办法检查从缓存服务器访问数据的方式/时间?

解决方案

通过再次检索数据,您的意思是缓存未命中,是否正确?


这可能是由于驱逐造成的。看一下这个帖子:


http://social.msdn.microsoft.com/Forums/en-US/velocity/thread/43d872d5-b008-46e1-8148-0d55bafbea3e/


I am using App Fabric for caching. I found out (through tests) that accessing data from cache was taking longer than accessing the database directly so I enabled local cache. I have local cache set to expire in 6 hours. Local cache works very good except that sometimes (through user experience) I have felt that it is retrieving data again. What can be wrong that is causing local cache to expire before 6 hours.

Is there any way to check how/when data is accessed from the cache server?

解决方案

By retrieving data again, you mean cache miss, correct ?

This could be caused due to eviction. Have a look at this thread :

http://social.msdn.microsoft.com/Forums/en-US/velocity/thread/43d872d5-b008-46e1-8148-0d55bafbea3e/


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

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