REN.Kit.CacheKit
1.0.0
dotnet add package REN.Kit.CacheKit --version 1.0.0
NuGet\Install-Package REN.Kit.CacheKit -Version 1.0.0
<PackageReference Include="REN.Kit.CacheKit" Version="1.0.0" />
<PackageVersion Include="REN.Kit.CacheKit" Version="1.0.0" />
<PackageReference Include="REN.Kit.CacheKit" />
paket add REN.Kit.CacheKit --version 1.0.0
#r "nuget: REN.Kit.CacheKit, 1.0.0"
#:package REN.Kit.CacheKit@1.0.0
#addin nuget:?package=REN.Kit.CacheKit&version=1.0.0
#tool nuget:?package=REN.Kit.CacheKit&version=1.0.0
REN.Kit.CacheKit
REN.Kit.CacheKit is the next-generation evolution of the popular RenHelpers.DataAccessHelpers package—modernized, optimized, and fully reimagined for .NET 8, .NET 9, and beyond.
⚠️ Notice:
The legacyRenHelpers
andRenHelpers.DataAccessHelpers
packages are now obsolete. All new features and updates are exclusively delivered via REN.Kit.
🚀 What is REN.Kit.CacheKit?
REN.Kit.CacheKit is an enterprise-ready caching toolkit for .NET applications.
It provides robust, production-grade caching services for both In-Memory and Redis out-of-the-box, with advanced extensibility for custom logic.
- Lightning-fast in-memory caching
- Scalable, distributed Redis cache support
- Clean interface with synchronous and asynchronous APIs
- Full support for .NET 8 and .NET 9
- Effortless extensibility (override or extend any method)
- Plug-and-play integration—start caching in minutes
🏁 Quick Start
1. Install the Package
dotnet add package REN.Kit.CacheKit
2. Configure Your Cache
Add your cache configuration to appsettings.json
:
"CacheConfiguration": {
"InMemoryConfiguration": {
"TimeConfiguration": {
"AbsoluteExpirationInHours": 12,
"SlidingExpirationInMinutes": 30
}
},
"RedisConfiguration": {
"Url": "localhost:6379",
"TimeConfiguration": {
"AbsoluteExpirationInHours": 12
},
"DatabaseId": 0,
"Username": "default",
"Password": "mypwd",
"AbortOnConnectFail": false,
"IsAdmin": false
}
}
3. Register the Service in Program.cs
builder.Services.AddRENCaching(RegisterRENCaching.CacheType.InMemory); // For In-Memory caching
builder.Services.AddRENCaching(RegisterRENCaching.CacheType.Redis); // For Redis caching
4. Inject and Use the Service
public class HomeController(IRENCacheService cacheService) : ControllerBase
{
[HttpPost("set")]
public async Task<IActionResult> SetCache([FromQuery] string key, [FromBody] object value)
{
await cacheService.SetAsync(key, value, TimeSpan.FromMinutes(10));
return Ok("Value cached.");
}
}
🔥 Why REN.Kit.CacheKit?
- Modern: Designed for .NET 8+ and cloud-native workloads
- Extensible: Easily override or extend any caching behavior
- Battle-Tested: Ready for production and enterprise-scale projects
- Plug-and-Play: Integrate in minutes—no boilerplate required
- Reliable: Robust expiration policies, async/sync support, and easy migration
🏢 Enterprise-Grade Features
- Seamless support for In-Memory and Redis cache
- Automatic dependency injection
- Works with any .NET 8 or .NET 9 project
- Production-ready design and configuration
- Advanced extensibility for custom requirements
📦 Migrating from RenHelpers?
Migration is easy—your favorite caching features have been modernized and improved.
Simply uninstall the old package and install REN.Kit.CacheKit.
Check the documentation for full migration details and code samples.
📚 Documentation
Explore the Full Documentation for guides, examples, and migration tips.
🤝 Contributing
Contributions are welcome! See CONTRIBUTING for guidelines.
REN.Kit.CacheKit
Regular. Everyday. Normal. Now, even faster and more reliable.
Built for developers, by developers.
Start supercharging your .NET caching with REN.Kit today!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.17)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.17)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.17)
- StackExchange.Redis (>= 2.8.37)
- System.Runtime.Caching (>= 8.0.17)
-
net9.0
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- StackExchange.Redis (>= 2.8.37)
- System.Runtime.Caching (>= 9.0.5)
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 |
---|---|---|
1.0.0 | 63 | 6/21/2025 |
- Initial release: Unified caching for .NET with Redis and in-memory support.