HybridRedisCache 1.0.0
See the version list below for details.
dotnet add package HybridRedisCache --version 1.0.0
NuGet\Install-Package HybridRedisCache -Version 1.0.0
<PackageReference Include="HybridRedisCache" Version="1.0.0" />
paket add HybridRedisCache --version 1.0.0
#r "nuget: HybridRedisCache, 1.0.0"
// Install HybridRedisCache as a Cake Addin #addin nuget:?package=HybridRedisCache&version=1.0.0 // Install HybridRedisCache as a Cake Tool #tool nuget:?package=HybridRedisCache&version=1.0.0
HybridRedisCache
HybridRedisCache
is a simple in-memory and Redis hybrid caching solution for .NET applications.
It provides a way to cache frequently accessed data in memory for fast access and automatically falls back to using Redis as a persistent cache when memory cache capacity is exceeded.
Installation
You can install the HybridRedisCache
package using NuGet:
PM> Install-Package HybridRedisCache
Usage
To use HybridCache
, you can create an instance of the HybridCache
class and then call its Set
and Get
methods to cache and retrieve data, respectively.
Here's an example:
using HybridRedisCache;
...
// Create a new instance of HybridCache with Redis connection string and instance name
var cache = new HybridCache("localhost:6379", "myapp");
// Cache a string value with key "mykey" for 1 minute
cache.Set("mykey", "myvalue", TimeSpan.FromMinutes(1));
// Retrieve the cached value with key "mykey"
var value = cache.Get<string>("mykey");
Contributing
Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.
If you'd like to contribute to HybridRedisCache
, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request.
License
HybridRedisCache
is licensed under the Apache License, Version 2.0. See the LICENSE file for more information.
Product | Versions 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. |
-
net6.0
- Microsoft.Extensions.Caching.Memory (>= 7.0.0)
- StackExchange.Redis (>= 2.6.104)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.3.1 | 8,042 | 4/27/2024 |
2.2.4 | 1,336 | 1/15/2024 |
2.2.3 | 147 | 1/3/2024 |
2.2.2 | 117 | 1/3/2024 |
2.2.1 | 118 | 1/3/2024 |
2.2.0 | 123 | 1/3/2024 |
2.1.0 | 137 | 12/31/2023 |
2.0.2 | 137 | 12/18/2023 |
2.0.1 | 128 | 12/12/2023 |
2.0.0 | 112 | 12/9/2023 |
1.9.0 | 126 | 12/8/2023 |
1.8.0 | 114 | 12/6/2023 |
1.6.0 | 119 | 12/4/2023 |
1.5.0 | 154 | 10/31/2023 |
1.4.0 | 138 | 10/15/2023 |
1.3.1 | 122 | 10/8/2023 |
1.3.0 | 116 | 9/10/2023 |
1.2.4 | 216 | 5/7/2023 |
1.2.3 | 127 | 5/5/2023 |
1.2.2 | 114 | 5/5/2023 |
1.2.1 | 112 | 5/5/2023 |
1.2.0 | 116 | 5/5/2023 |
1.1.1 | 123 | 5/4/2023 |
1.1.0 | 136 | 5/3/2023 |
1.0.9 | 135 | 5/1/2023 |
1.0.8 | 140 | 5/1/2023 |
1.0.7 | 138 | 4/30/2023 |
1.0.6 | 129 | 4/29/2023 |
1.0.5 | 142 | 4/29/2023 |
1.0.4 | 144 | 4/28/2023 |
1.0.3 | 148 | 4/28/2023 |
1.0.2 | 159 | 4/17/2023 |
1.0.1 | 145 | 4/16/2023 |
1.0.0 | 150 | 4/16/2023 |
First version of Hybrid Redis Cache package