Azure cache configuration and application, azurecache
Recently, cloud Service was used in the company's projects, so we studied how to configure and use Azure cache.
Create a project
Step 2 configure cache worker role
(1) Click attribute settings of the cache worker role project.
(2) attribute Caching settings
Step 3: add the code to the web. config configuration file of the web project (the identifier should be the Cache role name or Service Endpoint). We use the Cache role name as identifier = "CacheWorkerRole ".
<DataCacheClients>
<DataCacheClient name = "default">
<AutoDiscover isEnabled = "true" identifier = "CacheWorkerRole"/>
</DataCacheClient>
</DataCacheClients>
<CacheDiagnostics>
<CrashDump dumpLevel = "Off" dumpStorageQuotaInMB = "100"/>
</CacheDiagnostics>
Step 4 download the Azure cache package
Step 5: start to write your own cache code