{"repo":"Aguafrommars/Identity.Redis","free":true,"listed":false,"github":"https://github.com/Aguafrommars/Identity.Redis","clone":"git clone https://github.com/Aguafrommars/Identity.Redis.git","description":"ASP.NET Identity Redis Provider","language":"C#","stars":37,"topics":["asp-net-core","identity","redis"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Identity.Redis ASP.NET Identity Redis Provider Nuget packages -------------- Aguacongas.Identity.Redis :------: [![][Aguacongas.Identity.Redis-badge]][Aguacongas.Identity.Redis-nuget] [![][Aguacongas.Identity.Redis-downloadbadge]][Aguacongas.Identity.Redis-nuget] [Aguacongas.Identity.Redis-badge]: https://img.shields.io/nuget/v/Aguacongas.Identity.Redis.svg [Aguacongas.Identity.Redis-downloadbadge]: https://img.shields.io/nuget/dt/Aguacongas.Identity.Redis.svg [Aguacongas.Identity.Redis-nuget]: https://www.nuget.org/packages/Aguacongas.Identity.Redis/ Setup You setup Redis stores using one AddRedisStores extension method You can setup Redis stores with a redis configuration string: services.AddIdentity () .AddRedisStores(\"localhost\") .AddDefaultTokenProviders(); Or with an Action receiving an instance of a StackExchange.Redis.ConfigurationOptions : services.AddIdentity () .AddRedisStores(options = { options.EndPoints.Add(\"localhost:6379\"); }) .AddDefaultTokenProviders(); Both methods can take a int? database parameter to specify the Redis database to use: services.AddIdentity () .AddRedisStores(Configuration.GetValue (\"ConnectionStrings:DefaultConnection\"), 1) .AddDefaultTokenProviders(); Or, you can use AddRedisStores with a Func : var multiplexer = ConnectionMultiplexer.Connect(\"localhost\"); services.AddIdentity () .AddRedisStores(provider = multiplexer.GetDatabase()) .AddDefaultTokenProviders(); Logging A logger is automaticaly injected to the underlying StackExchange.Redi","default_branch":null,"files":null,"tree":[],"storefront":"/r/Aguafrommars","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Aguafrommars/Identity.Redis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}