Skip to content

How to configure Windows Azure Caching

shijuvar edited this page Aug 16, 2012 · 1 revision

Step 1 - Configure Cache Cluster

Configure Co-located Role Cache Cluster

  1. Right-click on the Windows Azure Role, and click properties.
  2. In the properties window, choose Caching tab.
  3. In the Caching tab, check the Enable Caching (Preview Release) checkbox.
  4. Choose Co-located Role for the Cache Cluster settings. By default, this will be Co-located Role when we enable Caching.
  5. Specify the Time To Live (min) for the time interval of Cache for expiry and Expiration Type for specifying the expiration type of Cache object.

Configure Dedicated Role Cache Cluster

  1. Add Cache Worker Role project.
  2. Configure the settings for Dedicated Cache Role - Right-click on the Cache Worker Role from the Windows Azure project, and click properties and choose Configuration. Specify the VM size and Instance Count.
  3. Specify the Time To Live (min) for the time interval of Cache for expiry and Expiration Type for specifying the expiration type of Cache object

Step 2 - Configure Cache Client

  1. Install the Windows Azure Caching Preview client library by using NuGet.The name of the NuGet package is Microsoft.WindowsAzure.Caching
  2. Configure web.config for using Windows Azure Caching `

type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" /> `