Appfabric本地缓存与主机缓存 [英] Appfabric local cache vs host cache

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

问题描述

我已经使用启用了lcoal缓存的XML配置了appfabric缓存。当第一次进行调用时,它将存储在主机中,并在后续调用中使用本地缓存。

I have configured appfabric cache using XML with lcoal cache enabled. When first time a call is made it stored in host and in subsequent calls local cache is used.

1。我如何知道(后续调用)不会托管并从本地缓存中使用?

1. How do I know (subsequent calls) are not going to host and is being used from local cache ?

2。可以存储在本地缓存中的最大缓存对象数是多少(默认值为10000)

2. What is the maximum no of cache objects that can be stored in local cache (Default is 10000)

3。使用配置模型时,我们还需要为本地缓存编程吗?

3. When using configuration model do we still need some programming for local cache ?

谢谢,

Sri

推荐答案

1。我怎么知道(后续调用)不会托管并从本地缓存中使用?

有一个简单的方法可以知道,其中一个我要证明的工作很简单,使用
分析器。与主机建立连接并从缓存中检索项目是一种"昂贵的"操作(特别是对于大数据项)。看看你的探查器,你会看到差异。另一种选择是使用sysinternals中的TCPView等工具查看网络
流量。如果您没有使用本地缓存,您将看到每个请求从AppFabric缓存到您的应用程序的流量。

< span style ="color:#333333; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left "> 2。可以存储在本地缓存中的最大缓存对象数是多少
(默认值为10000)

您可以使用您的应用程序配置进行配置,查看
objectCount参数,当然限制是您可以处理多少本地内存(这是针对具有本地缓存​​的进程),当然每个arch有内存限制。您还可以控制到期时间和到期模式。

3。在使用配置模型时,我们还需要对本地
缓存进行一些编程吗?

不,足够指定客户端配置中的本地缓存,这将是
透明工作。

看看(如果你还没有)到本地缓存配置文档:

http://msdn.microsoft.com/en-us/library/ee790880.aspx

我发现有趣的一点是,在启用大数据集和压缩以及本地缓存的情况下,您可以节省大量CPU周期,等待数据从缓存传输服务器。

One of the things I found interesting is that with big datasets and compression and local cache enabled, you would save a lot of CPU cycles waiting for the data to transfer from the cache server.





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

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