Windows Server AppFabric缓存参考实例和方案选择 2/3
2010-09-26 10:40
281 查看
实例
Web Camps Training Kit[MSDN上可以下载,如下的地址]
http://download.microsoft.com/download/4/D/A/4DA69FF9-A83D-4139-8F0E-7E01D8684F6D/WebCampsTrainingKit.Setup.20100720.exe
中\Labs\EnhancingYourWebApp\Source\Ex01-AddingAppFabricCache有这个的详细说明
Start-CacheCluster
New-Cache –CacheName **
$usr = [Environment]::UserName
Grant-CacheAllowedClientAccount -account $usr
Get-Cache
Get-CacheStatistics –CacheName ***
Restart-CacheCluster
<configSections>
<!-- required to read the <dataCacheClient> element -->
<section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" allowLocation="true" allowDefinition="Everywhere"/>
</configSections>
<dataCacheClient>
<hosts>
<host name="127.0.0.1" cachePort="22233" />
</hosts>
</dataCacheClient>
<!--AppFabric session state provider-->
<sessionState mode="Custom" customProvider="AppFabric">
<providers>
<add name="AppFabric" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider, Microsoft.ApplicationServer.Caching.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</providers>
</sessionState>
这个实例有个测试程序实现各种操作的演示.
缓存方案选择
AppFabric 缓存虽然功能强大,但是和Windows系统绑定,而且不是开源,对于一些对于服务器成本有限制或则Linux的环境,一般都使用Memcached,一个成熟而且应用比较广泛的开源软件。
下文有个分析
/article/4585249.html
Web Camps Training Kit[MSDN上可以下载,如下的地址]
http://download.microsoft.com/download/4/D/A/4DA69FF9-A83D-4139-8F0E-7E01D8684F6D/WebCampsTrainingKit.Setup.20100720.exe
中\Labs\EnhancingYourWebApp\Source\Ex01-AddingAppFabricCache有这个的详细说明
Start-CacheCluster
New-Cache –CacheName **
$usr = [Environment]::UserName
Grant-CacheAllowedClientAccount -account $usr
Get-Cache
Get-CacheStatistics –CacheName ***
Restart-CacheCluster
<configSections>
<!-- required to read the <dataCacheClient> element -->
<section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" allowLocation="true" allowDefinition="Everywhere"/>
</configSections>
<dataCacheClient>
<hosts>
<host name="127.0.0.1" cachePort="22233" />
</hosts>
</dataCacheClient>
<!--AppFabric session state provider-->
<sessionState mode="Custom" customProvider="AppFabric">
<providers>
<add name="AppFabric" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider, Microsoft.ApplicationServer.Caching.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</providers>
</sessionState>
这个实例有个测试程序实现各种操作的演示.
缓存方案选择
AppFabric 缓存虽然功能强大,但是和Windows系统绑定,而且不是开源,对于一些对于服务器成本有限制或则Linux的环境,一般都使用Memcached,一个成熟而且应用比较广泛的开源软件。
下文有个分析
/article/4585249.html
相关文章推荐
- jQuery参考实例 1.3 使用选择器和jQuery函数对DOM元素进行选择
- Windows Server AppFabric 缓存(微软分布式缓存解决方案)
- Windows Server AppFabric 缓存(微软分布式缓存解决方案)问斩摘自小城岁月
- jQuery参考实例 1.4 在特定范围中选择DOM元素
- 关于jQuery参考实例2.0 用jQuery选择元素
- jQuery参考实例 2.0 用jQuery选择元素
- Windows Server AppFabric 缓存(微软分布式缓存解决方案)
- 即时通讯方案之第三方选择比较(参考)
- 看图说话 Windows Server AppFabric 缓存功能的性能计数器
- jQuery参考实例 1.9 以当前选择的元素为起点,遍历查找DOM对象
- 关于jQuery参考实例2.0 用jQuery选择元素
- 企业实例参考:一个私有云选型方案
- Windows Server AppFabric 缓存(微软分布式缓存解决方案)
- Windows Server AppFabric缓存服务的几点实用心得
- Windows Server AppFabric缓存服务的几点实用心得
- PHP 开发 APP 接口 学习笔记与总结 - APP 接口实例 [3] 首页 APP 接口开发方案 ② 读取缓存方式
- jQuery参考实例 1.8 将前一次选择的元素集合并到当前选择的元素集中
- Windows Server AppFabric 缓存(微软分布式缓存解决方案)
- jQuery参考实例 2.1 仅选择子级元素
- Windows Server AppFabric 缓存(微软分布式缓存解决方案)