Web Camps Training Kit[MSDN上可以下載下傳,如下的位址]
<a href="http://download.microsoft.com/download/4/D/A/4DA69FF9-A83D-4139-8F0E-7E01D8684F6D/WebCampsTrainingKit.Setup.20100720.exe">http://download.microsoft.com/download/4/D/A/4DA69FF9-A83D-4139-8F0E-7E01D8684F6D/WebCampsTrainingKit.Setup.20100720.exe</a>
中\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,一個成熟而且應用比較廣泛的開源軟體。
下文有個分析
<a href="http://www.cnblogs.com/dudu/archive/2010/08/05/1792948.html">http://www.cnblogs.com/dudu/archive/2010/08/05/1792948.html</a>