Skip to content

Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.

License

Notifications You must be signed in to change notification settings

cnblogs/ServiceStackRedisCache

Repository files navigation

ServiceStackRedisCache

Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.

Install Package

https://www.nuget.org/packages/ServiceStackRedisCache or https://www.nuget.org/packages/Microsoft.Extensions.Caching.ServiceStackRedis

Configure

Startup.cs

public void ConfigureServices(IServiceCollection services)
{
    services.AddDistributedServiceStackRedisCache("redis");
}

appsettings.json

{
  "redis": {
    "Host": "xxx",
    "Password": "xxx"
  }
}

About

Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published