Indrivo.Cache.Accessor.Service.Redis 1.1.0

dotnet add package Indrivo.Cache.Accessor.Service.Redis --version 1.1.0                
NuGet\Install-Package Indrivo.Cache.Accessor.Service.Redis -Version 1.1.0                
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.Service.Redis" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Indrivo.Cache.Accessor.Service.Redis --version 1.1.0                
#r "nuget: Indrivo.Cache.Accessor.Service.Redis, 1.1.0"                
#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.Service.Redis as a Cake Addin
#addin nuget:?package=Indrivo.Cache.Accessor.Service.Redis&version=1.1.0

// Install Indrivo.Cache.Accessor.Service.Redis as a Cake Tool
#tool nuget:?package=Indrivo.Cache.Accessor.Service.Redis&version=1.1.0                

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 (1)

Showing the top 1 NuGet packages that depend on Indrivo.Cache.Accessor.Service.Redis:

Package Downloads
Indrivo.Cache.Accessor.Host

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 213 4/18/2023
1.0.5 384 12/6/2022
1.0.4 364 12/6/2022
1.0.3 562 6/9/2022
1.0.2 553 5/31/2022
1.0.1 566 5/31/2022
1.0.0 565 5/27/2022