Skip to content
This repository has been archived by the owner. It is now read-only.
A library to help ASP.NET Session State works with distributed cache (memcached & redis)
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Properties
.gitattributes
.gitignore
README.md
Session.Memcached.cs
Session.Redis.cs
VIEApps.Components.Caching.AspNet.csproj
package.nuspec

README.md

VIEApps.Components.Caching.AspNet

The library helps ASP.NET Session State works with distributed cache (Memcached & Redis)

  • Identities will have the "prefix" as the name of the provider (in web.config file)
  • Using VIEApps.Components.Caching as main library

NuGet

Configuration for using Memcached

<sessionState mode="Custom" cookieless="UseCookies" cookieName=".ASPNET-Session-ID" regenerateExpiredSessionId="true" customProvider="MemcachedSessionStateProvider">
	<providers>
		<add name="MemcachedSessionStateProvider" type="net.vieapps.Components.Caching.AspNet.MemcachedSessionStateProvider, VIEApps.Components.Caching.AspNet" />
	</providers>
</sessionState>

Remarks: the name of the session state provider (MemcachedSessionStateProvider) will be used as prefix of all keys

Configuration for using Redis

<sessionState mode="Custom" cookieless="UseCookies" cookieName=".ASPNET-Session-ID" regenerateExpiredSessionId="true" customProvider="RedisSessionStateProvider">
	<providers>
		<add name="RedisSessionStateProvider" type="net.vieapps.Components.Caching.AspNet.RedisSessionStateProvider, VIEApps.Components.Caching.AspNet" />
	</providers>
</sessionState>

Remarks: the name of the session state provider (RedisSessionStateProvider) will be used as prefix of all keys

You can’t perform that action at this time.