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
                    
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="REN.Kit.CacheKit" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="REN.Kit.CacheKit" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="REN.Kit.CacheKit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add REN.Kit.CacheKit --version 1.0.0
                    
#r "nuget: REN.Kit.CacheKit, 1.0.0"
                    
#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.
#:package REN.Kit.CacheKit@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=REN.Kit.CacheKit&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=REN.Kit.CacheKit&version=1.0.0
                    
Install as a Cake Tool

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 legacy RenHelpers and RenHelpers.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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.