Microsoft Azure Redis SessionStateProvider

Microsoft Azure Redis SessionStateProvider

Read this morning about the Microsoft Azure Redis Cache Service on Scott Guthrie’s blog and immediately had to try it out.

You’ll have to log in to the Microsoft Azure Preview Portal and create a Redis cache service. After that you must have an ASP.NET Website for forms or MVC and install the following Nuget package, which uses the StackExchange Redis Client:

Install-Package Harbour.RedisSessionStateStore
<system.web>
  <sessionstate mode="Custom" customprovider="RedisSessionStateProvider">
    <providers>
      <clear></clear>
      <add name="RedisSessionStateProvider" type="Harbour.RedisSessionStateStore.RedisSessionStateStoreProvider" host="TUw8207//FLhXjoV6g+FNPtwcgatYwCwqBd2BPwqr7o=@moverall.redis.cache.windows.net" clienttype="basic"></add>
    </providers>
  </sessionstate>
</system.web>

And it just works! Pretty epic!