Indrivo.Cache.Accessor.Contracts
1.0.4
See the version list below for details.
dotnet add package Indrivo.Cache.Accessor.Contracts --version 1.0.4
NuGet\Install-Package Indrivo.Cache.Accessor.Contracts -Version 1.0.4
<PackageReference Include="Indrivo.Cache.Accessor.Contracts" Version="1.0.4" />
paket add Indrivo.Cache.Accessor.Contracts --version 1.0.4
#r "nuget: Indrivo.Cache.Accessor.Contracts, 1.0.4"
// Install Indrivo.Cache.Accessor.Contracts as a Cake Addin #addin nuget:?package=Indrivo.Cache.Accessor.Contracts&version=1.0.4 // Install Indrivo.Cache.Accessor.Contracts as a Cake Tool #tool nuget:?package=Indrivo.Cache.Accessor.Contracts&version=1.0.4
.Net | Cache Accessor
Introduction
Purpose
The main purpose of the module came from the fact that we are reusing the same code for the cache in multiple projects and we need to find a way to standertize it.
How to set up
A reference web api is already set up in the current repository you can check that one for detailed implementation information. Below only a small set of nuances will be explained. Set up is pretty straightforward you will need to install the following packages inside your solution:
- Indrivo.Cache.Accessor.Contracts
- Indrivo.Cache.Accessor.Host" Version
- Indrivo.Cache.Accessor.Service.Memory
- Indrivo.Cache.Accessor.Service.Redis
Each plugin comes with his own small installer. So you are free to use them explicitly. However the desired way is to add the following structure to your appsetting file. Example:
"CacheOptions": {
"Configurations": [
{
// Type of cache available options are : Redis | Memory | Database.
"Type": "Redis",
// Optional name of the docker instance.
"InstanceName": "redis",
// Connection string to db or redis container.
"ConnectionString": "localhost:6379"
}
]
}
Inside startup.cs or program.cs you can install the service by using the following method
services.InstallCacheConfiguration(builder.Configuration);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- FluentValidation (>= 11.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Indrivo.Cache.Accessor.Contracts:
Package | Downloads |
---|---|
Indrivo.Cache.Accessor.Service.Redis
Package Description |
|
Indrivo.Cache.Accessor.Service.Memory
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.