Minimal Azure Cache in Emulator

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s