MultiCache 1.0.1
See the version list below for details.
dotnet add package MultiCache --version 1.0.1
NuGet\Install-Package MultiCache -Version 1.0.1
<PackageReference Include="MultiCache" Version="1.0.1" />
paket add MultiCache --version 1.0.1
#r "nuget: MultiCache, 1.0.1"
// 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
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 | Versions 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. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.Caching.Memory (>= 3.1.16)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.16)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.16)
-
net5.0
- Microsoft.Extensions.Caching.Memory (>= 5.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
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.