Windows Server appfabric cache reference instance and solution selection 2/3

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.