Distributed cache implementation of IDistributedCache using PostgreSQL
- Install the package into your project
dotnet add package Extensions.Caching.PostgreSql
- Add the following line to the
Startup
Configure
method.
services.AddDistributedPostgreSqlCache(options =>
{
options.ConnectionString = configuration["ConnectionString"];
options.SchemaName = configuration["SchemaName"];
options.TableName = configuration["TableName"];
})
Available on NuGet at https://www.nuget.org/packages/Extensions.Caching.PostgreSql/