MultiCache 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package MultiCache --version 1.0.1                
NuGet\Install-Package MultiCache -Version 1.0.1                
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="MultiCache" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MultiCache --version 1.0.1                
#r "nuget: MultiCache, 1.0.1"                
#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 MultiCache as a Cake Addin
#addin nuget:?package=MultiCache&version=1.0.1

// Install MultiCache as a Cake Tool
#tool nuget:?package=MultiCache&version=1.0.1                

CI

What is MultiCache?

MultiCache is simple little library built to solve a complex caching problem. High traffic applications use caching mechanism as distributed. That integration sometimes has problem issue. Because each cache request use TCP socket. Multicache library solves this problem. When application hit cache from CacheServer(Redis) the object is set also memory of the server. So other requests server can reply the requests from memory.

How do I get started?

First, configure MultiCache to know what cache serve will use, in the startup of your application:

services.AddRedisMultiCacheServices(options =>
{
    options.Configuration = "YOUR_REDIS_CONNECTION_STRING";
    options.InstanceName = "YOUR_REDIS_INSTANCE_NAME";
});

Then in your application code has IMultiCacheManager Interface:

Task<T> GetAsync<T>(string key, CancellationToken cancellationToken = default);
Task SetAsync<T>(string key, T value, TimeSpan? expiry = null, CancellationToken token = default);
Task<T> GetOrCreateAsync<T>(string key, Func<Task<T>> factory, TimeSpan? expiry = null, CancellationToken cancellationToken = default);
Task RemoveAsync(string key, CancellationToken cancellationToken);

Where can I get it?

PM> Install-Package MultiCache.StackExchangeRedis
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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 MultiCache:

Package Downloads
MultiCache.StackExchangeRedis

MultiCache library is a supporter for high-performance application as a cache manager system.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 367 6/10/2023
1.0.2 761 8/21/2021
1.0.1 669 8/1/2021