Skip to content

mikanyg/IdentityServer3.Contrib.Cache.Redis

 
 

Repository files navigation

IdentityServer3.Contrib.Cache.Redis

IdentityServer3.Contrib.Cache.Redis is a library that offers the right implementation of

  • ICache<Client>
  • ICache<IEnumerable<Scope>>
  • ICache<IEnumerable<Claim>>

for all distributed environments that are using Redis as cache server.

##How to install it

##Install Core NuGet Status

PM> Install-Package IdentityServer3.Contrib.Cache.Redis

Than register it on your Identity Server

var clientStoreCache = new ClientStoreCache(myRedisMultiplexInstance);
var scopeStoreCache = new ScopeStoreCache(myRedisMultiplexInstance);
var userServiceCache = new UserServiceCache(myRedisMultiplexInstance);

factory.ConfigureClientStoreCache(new Registration<ICache<Client>>(clientStoreCache));

factory.ConfigureScopeStoreCache(new Registration<ICache<IEnumerable<Scope>>>(scopeStoreCache));

factory.ConfigureUserServiceCache(new Registration<ICache<IEnumerable<Claim>>>(userServiceCache));

For more information about caching and Identity Server Take a look here

Contributing

Getting started with Git and GitHub

Once you're familiar with Git and GitHub, clone the repository and start contributing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.5%
  • Batchfile 3.5%