Table of Contents
ASP.NET Core's Distributed Cache implementation using Oracle Database.
Restore the solution do download its projects' dependencies:
dotnet restore
And use Docker Compose to provision the containerized infrastructure:
docker compose -p aspnetcore-oracle-caching up -d --build
To add the Oracle distributed cache service to your application, add these lines to your startup code:
builder.Services.AddDistributedOracleCache(options =>
{
options.ConnectionString = builder.Configuration.GetConnectionString("DistCache_ConnectionString");
options.SchemaName = "CACHING";
options.TableName = "Cache";
});
For more details, on using distributed cache in ASP.NET Core, refer to the docs: Distributed caching in ASP.NET Core.
Imitation is the sincerest form of flattery
As it so happens, this package is essentially a port of the SQL Server distributed cache implemented on ASP.NET Core: Microsoft.Extensions.Caching.SqlServer
In order to add it to the ASP.NET Core's main repository, we would need to have:
- All tests passing
- Properly documented code
- Means of publishing this package to NuGet under its intended name, i.e.
Microsoft.Extensions.Caching.Oracle
- Gabriel Kim - gabrielkim13 - [email protected]