访问本地和群集缓存 [英] Accessing local as well as clustered cache

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

问题描述

我的应用程序需要将某些值存储在本地缓存中,而其他值则存储在appfabric缓存集群中。在配置选项中,我看到了一种启用本地缓存的方法,但是datacache上的put / add方法不允许您指定应该插入值的缓存(本地
或其他)!有一个简单的解决方案吗?

My application needs certain values to be stored in the local cache and others to be stored in the appfabric cache cluster. In the config options, I see a way to enable local cache but the put/add methods on datacache does not let you specify the cache (local or otherwise) to which the value should be inserted! Is there a simple solution for this?

 

推荐答案

对于您不想要的数据去集群 缓存,您可以使用.net提供的缓存。对于需要转到群集的数据,您可以使用app fabric缓存。
For data that you don't want to go to cluster  cache, you can use cache available with .net. And for data that needs to go to the cluster, you can use app fabric caching.


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

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