Indrivo.Cache.Accessor.Contracts 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Indrivo.Cache.Accessor.Contracts --version 1.0.5                
NuGet\Install-Package Indrivo.Cache.Accessor.Contracts -Version 1.0.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Indrivo.Cache.Accessor.Contracts" Version="1.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Indrivo.Cache.Accessor.Contracts --version 1.0.5                
#r "nuget: Indrivo.Cache.Accessor.Contracts, 1.0.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Indrivo.Cache.Accessor.Contracts as a Cake Addin
#addin nuget:?package=Indrivo.Cache.Accessor.Contracts&version=1.0.5

// Install Indrivo.Cache.Accessor.Contracts as a Cake Tool
#tool nuget:?package=Indrivo.Cache.Accessor.Contracts&version=1.0.5                

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:

  1. Indrivo.Cache.Accessor.Contracts
  2. Indrivo.Cache.Accessor.Host" Version
  3. Indrivo.Cache.Accessor.Service.Memory
  4. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.1.0 268 4/18/2023
1.0.5 547 12/6/2022
1.0.4 524 12/6/2022
1.0.3 762 6/9/2022
1.0.2 755 5/31/2022
1.0.1 774 5/31/2022
1.0.0 802 5/27/2022