Azure cache 的配置与应用
2015-06-11 16:32
197 查看
最近公司的项目要是用cloud Service 所以研究了下 Azure cache 的配置与使用。
首先创建项目
第二步 配置 cache worker role
(1) 点击 cache worker role 项目的属性设置。
(2)属性Caching 设置
第三步 添加代码到web项目的 web.config配置文件(identifier应该是Cache role name or Service Endpoint )我们使用的是Cache role name 说以是identifier="CacheWorkerRole" 。
<dataCacheClients>
<dataCacheClient name="default">
<autoDiscover isEnabled="true" identifier="CacheWorkerRole" />
</dataCacheClient>
</dataCacheClients>
<cacheDiagnostics>
<crashDump dumpLevel="Off" dumpStorageQuotaInMB="100" />
</cacheDiagnostics>
第四步 下载Azure cache 包
第五步:开始写自己的cache 代码
首先创建项目
第二步 配置 cache worker role
(1) 点击 cache worker role 项目的属性设置。
(2)属性Caching 设置
第三步 添加代码到web项目的 web.config配置文件(identifier应该是Cache role name or Service Endpoint )我们使用的是Cache role name 说以是identifier="CacheWorkerRole" 。
<dataCacheClients>
<dataCacheClient name="default">
<autoDiscover isEnabled="true" identifier="CacheWorkerRole" />
</dataCacheClient>
</dataCacheClients>
<cacheDiagnostics>
<crashDump dumpLevel="Off" dumpStorageQuotaInMB="100" />
</cacheDiagnostics>
第四步 下载Azure cache 包
第五步:开始写自己的cache 代码
相关文章推荐
- PAT (Basic Level) Practise:1005. 继续(3n+1)猜想
- 5-7合并图层
- 东莞理工学院是几本?
- TCP和UDP的比较
- Asp.net的开发框架
- APP注册名称的一些问题
- vs xamarin android SharedPreferences
- less 笔记
- 不要总是指责和埋怨
- 5-6图层的对齐
- 《你的灯亮着吗》读后感第三篇
- Oracle Grid Infrastructure Install or Upgrade Fails With INS-20802
- 爬虫
- bzoj 1318: [Spoj744] Longest Permutation 智商题
- Linux 本地yum源的配置
- 查看MySQL默认字符集
- bzoj 1318: [Spoj744] Longest Permutation 智商题
- Android 使用Listview的优化
- MSSQL 自定义函数实现类似于 split 方法,返回表
- 根文件系统使用登录模式