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 />
      <add name="RedisSessionStateProvider"
            type="Harbour.RedisSessionStateStore.RedisSessionStateStoreProvider"
            host="TUw8207//[email protected].net" clientType="basic" />
    </providers>
  </sessionState>
</system.web>

And it just works! Pretty epic!

You may also like...

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.