I archived this project in favor of the Microsoft.Extensions.Caching.Postgres library: https://www.nuget.org/packages/Microsoft.Extensions.Caching.Postgres
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
StartupConfiguremethod.
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/