Instance
Web camps training kit [Download from msdn at the following address]
Http://download.microsoft.com/download/4/D/A/4DA69FF9-A83D-4139-8F0E-7E01D8684F6D/WebCampsTrainingKit.Setup.20100720.exe
\ Labs \ enhancingyourwebapp \ source \ Ex01-AddingAppFabricCache has a detailed description of this
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. datachesessionstoreprovider, Microsoft. applicationserver. caching. Client, version = 1.0.0.0, culture = neutral, publickeytoken = token"/>
</Providers>
</Sessionstate>
This instance has a testProgramDemonstration of various operations.
Cache solution Selection
Although the appfabric cache is powerful, it is bound to a Windows system and is not open-source. memcached is generally used for some environments with limited server costs or Linux, A mature and widely used open-source software.
The following is an analysis
Http://www.cnblogs.com/dudu/archive/2010/08/05/1792948.html