![]() |
VOOZH | about |
dotnet add package CodeDesignPlus.Net.Redis.Cache.Abstractions --version 0.11.0
NuGet\Install-Package CodeDesignPlus.Net.Redis.Cache.Abstractions -Version 0.11.0
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache.Abstractions" Version="0.11.0" />
<PackageVersion Include="CodeDesignPlus.Net.Redis.Cache.Abstractions" Version="0.11.0" />Directory.Packages.props
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache.Abstractions" />Project file
paket add CodeDesignPlus.Net.Redis.Cache.Abstractions --version 0.11.0
#r "nuget: CodeDesignPlus.Net.Redis.Cache.Abstractions, 0.11.0"
#:package CodeDesignPlus.Net.Redis.Cache.Abstractions@0.11.0
#addin nuget:?package=CodeDesignPlus.Net.Redis.Cache.Abstractions&version=0.11.0Install as a Cake Addin
#tool nuget:?package=CodeDesignPlus.Net.Redis.Cache.Abstractions&version=0.11.0Install as a Cake Tool
π Quality Gate Status
π Bugs
π Code Smells
π Coverage
π Duplicated Lines (%)
π Vulnerabilities
The CodeDesignPlus.Net.Redis.Cache project provides a concrete implementation of the ICacheManager interface using Redis as the underlying caching mechanism. This library allows .NET applications to seamlessly leverage Redis for efficient caching, improving performance and scalability. Itβs part of the CodeDesignPlus ecosystem, designed to work with the core caching abstractions provided in CodeDesignPlus.Net.Cache.
CodeDesignPlus.Net.Redis.Cache provides a reliable and high-performance way to use Redis as a caching provider. Built on top of CodeDesignPlus.Net.Cache, this library provides a direct way to integrate Redis caching into your application, taking full advantage of Redis' advanced features, while still keeping a clear separation of concerns.
ICacheManager interface using Redis.Newtonsoft.Json or similar for serializing and deserializing objects to store in Redis.CodeDesignPlus.Net.Cache: Seamlessly integrates with the abstract caching layer for easy switching between caching mechanisms.To install the package, run the following command:
dotnet add package CodeDesignPlus.Net.Redis.Cache
Here's an example of how to use RedisCacheManager with the ICacheManager abstraction.
First, register the RedisCacheManager in the dependency injection container:
// In Startup.cs or your DI setup:
using CodeDesignPlus.Net.Redis.Cache.Extensions;
using Microsoft.Extensions.DependencyInjection;
public void ConfigureServices(IServiceCollection services)
{
// ... other service registrations
services.AddCache(Configuration);
// ... other service registrations
}
Then, inject the ICacheManager into your services:
using CodeDesignPlus.Net.Cache;
public class MyService
{
private readonly ICacheManager _cacheManager;
public MyService(ICacheManager cacheManager)
{
_cacheManager = cacheManager;
}
public async Task<MyData> GetDataAsync(string key)
{
var cachedData = await _cacheManager.GetAsync<MyData>(key);
if (cachedData != null)
{
return cachedData;
}
var data = await GetDataFromSourceAsync(key); // Some function to retrieve data
await _cacheManager.SetAsync(key, data, TimeSpan.FromMinutes(10));
return data;
}
// Assume this method return a task with the result
private async Task<MyData> GetDataFromSourceAsync(string key)
{
// Your implementation here
await Task.Delay(100);
return new MyData() { Id=key, Name = "Example " + key};
}
}
// A simple Model
public class MyData {
public string Id { get; set;}
public string Name { get; set; }
}
For more detailed information, please refer to our documentation at CodeDesignPlus Doc.
Refer to issues for a list of proposed features and known issues.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the MIT License. See LICENSE for more information.
CodeDesignPlus - @CodeDesignPlus - codedesignplus@outlook.com
Project Link: CodeDesignPlus.Net.Redis.Cache
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on CodeDesignPlus.Net.Redis.Cache.Abstractions:
| Package | Downloads |
|---|---|
|
CodeDesignPlus.Net.Redis.Cache
CodeDesignPlus.Net.Redis.Cache is a library that provides a simple and easy-to-use cache abstraction for .NET applications. It supports in-memory and distributed caching, allowing developers to use the same API to interact with different cache providers. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.13.0-beta.12851 | 52 | 6/3/2026 |
| 0.13.0-beta.12850 | 667 | 5/31/2026 |
| 0.13.0-beta.12848 | 441 | 5/25/2026 |
| 0.13.0-beta.12847 | 491 | 5/24/2026 |
| 0.13.0-beta.12840 | 106 | 5/21/2026 |
| 0.13.0-beta.12839 | 534 | 5/20/2026 |
| 0.13.0-beta.12822 | 910 | 5/18/2026 |
| 0.13.0-beta.12816 | 65 | 5/18/2026 |
| 0.13.0-beta.12815 | 111 | 5/17/2026 |
| 0.13.0-beta.12808 | 60 | 5/17/2026 |
| 0.13.0-beta.12770 | 143 | 5/16/2026 |
| 0.13.0-beta.12769 | 68 | 5/16/2026 |
| 0.13.0-beta.12768 | 52 | 5/16/2026 |
| 0.13.0-beta.12767 | 236 | 5/14/2026 |
| 0.13.0-beta.12766 | 176 | 5/1/2026 |
| 0.13.0-beta.12765 | 57 | 5/1/2026 |
| 0.13.0-beta.12762 | 58 | 5/1/2026 |
| 0.13.0-beta.12761 | 65 | 4/30/2026 |
| 0.13.0-beta.12760 | 63 | 4/30/2026 |
| 0.11.0 | 903 | 7/23/2025 |