The Azure Powershell scripts are great for small experiments:
First create a new directory and open a powershell prompt as administrator:
New-AzureServiceProject -ServiceName “CachingDemo”
New-AzureServiceProject -ServiceName “CachingDemo”
cd CachingDemo
Start-AzureEmulator -Launch
This will give you a minimal cache role running in the emulator.
This is only officially visible to other services running in the emulator.
However with the right sdk versions and config it should be available locally.
The following works for a local machine:
dataCacheClient name=”default” useLegacyProtocol=”false”
hosts
host name=”127.255.0.0″ cachePort=”20004″
hosts
securityProperties mode=”None” protectionLevel=”None”
dataCacheClient
Assuming that the sdk version matches the caching library.