码迷,mamicode.com
首页 > 系统相关 > 详细

Azure cache 的配置与应用

时间:2015-06-11 18:34:11      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:

最近公司的项目要是用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 代码

技术分享

 

Azure cache 的配置与应用

标签:

原文地址:http://www.cnblogs.com/wuwei928/p/4569479.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!