如何使用本地缓存功能 [英] how to use local cache feature

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

问题描述

我在我的应用程序中的appfabric缓存中启用了本地缓存功能,我在两台机器上运行该应用程序 将本地缓存超时设置为30分钟。我在一台机器1和机器2上的缓存中加了一些值 我得到
我在machine1上设置的值。

I am enabling local cache feature inside appfabric cache in my application,and I am running that application on two machines  with local cache timeout set to 30 minutes. I put some value in that cache from one machine1 and on machine2  I am getting the value which I set on machine1.

本机缓存在机器上启用,现在我正在更改machine1上的缓存值以及运行该应用程序时在机器上2 我从cache1中获取了值,我立即在machine1上更新了。所以,如果我在machine2上启用本地缓存,那么为什么
我没有得到它以前的值。我得到了第二个值,我从machine1更新。我认为它不是从本地缓存中重新获取缓存值它总是从服务器中检索该值。那么任何人都可以告诉我如何 获取本地缓存
值或我错误的地方。

local cache is enable on both the machine, Now I am changing that cache value on machine1 and when I run that application on machine2  I get the value from cache which I updated instantly on machine1. so If I enable local cache on machine2 then why I am not getting Its previous value .I am getting the second value which I update from machine1. I think that it is not retriving cache value from local cache It is always retrieving that value from server. so can anybody tell me how to  get local cache value or where I am doing mistake.

 

 

 

 

 

推荐答案


hi,

我在我的应用程序中的appfabric缓存中启用本地缓存功能,我正在运行在两台机器上应用 将本地缓存超时设置为30分钟。我在一台机器1和机器2上的缓存中加了一些值 我得到
我在machine1上设置的值。

I am enabling local cache feature inside appfabric cache in my application,and I am running that application on two machines  with local cache timeout set to 30 minutes. I put some value in that cache from one machine1 and on machine2  I am getting the value which I set on machine1.

本机缓存在机器上启用,现在我正在更改machine1上的缓存值以及运行该应用程序时在机器上2 我从cache1中获取了值,我立即在machine1上更新了。所以,如果我在machine2上启用本地缓存,那么为什么
我没有得到它以前的值。我得到了第二个值,我从machine1更新。我认为它不是从本地缓存中重新获取缓存值它总是从服务器中检索该值。那么任何人都可以告诉我如何 获取本地缓存
值或我错误的地方。

local cache is enable on both the machine, Now I am changing that cache value on machine1 and when I run that application on machine2  I get the value from cache which I updated instantly on machine1. so If I enable local cache on machine2 then why I am not getting Its previous value .I am getting the second value which I update from machine1. I think that it is not retriving cache value from local cache It is always retrieving that value from server. so can anybody tell me how to  get local cache value or where I am doing mistake.

 

 

 

 

 

 

启用时隐式使用本地缓存。如果您没有看到预期的结果,请尝试使用通知sync'g而不是超时,并在客户端设置较低的轮询间隔(默认为300秒,与超时相同)。

Local cache is used implicitly when enabled. If you aren't seeing the results you expect, try using notification sync'g instead of timeouts, and set a lower polling interval on the client (default is 300 seconds, same as timeout).


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

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