nightmaregaurav.rediscachehelper 2.0.0

dotnet add package nightmaregaurav.rediscachehelper --version 2.0.0
NuGet\Install-Package nightmaregaurav.rediscachehelper -Version 2.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="nightmaregaurav.rediscachehelper" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nightmaregaurav.rediscachehelper --version 2.0.0
#r "nuget: nightmaregaurav.rediscachehelper, 2.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.
// Install nightmaregaurav.rediscachehelper as a Cake Addin
#addin nuget:?package=nightmaregaurav.rediscachehelper&version=2.0.0

// Install nightmaregaurav.rediscachehelper as a Cake Tool
#tool nuget:?package=nightmaregaurav.rediscachehelper&version=2.0.0

RedisCacheHelper

RedisCacheHelper is a C# utility library that provides caching functionality using the StackExchange.Redis library without DI. It simplifies the process of storing and retrieving data from a Redis cache, allowing for efficient and reliable caching of objects.

Features

  • Simple and intuitive API for caching operations.
  • Supports synchronous and asynchronous caching methods.
  • Allows caching with optional expiration times.
  • Provides synchronization of data retrieval using a provided function.

Usage

  1. Install the package from NuGet.
  2. Add these somewhere in your appsettings.json:
     "Redis": {
          "Host": "your.redis.host",
          "Port": "PORT",
          "Password": "xxxxxxxxxx",
          "Prefix": "keyPrefix:"
     }
  1. Use in code
// Example usage of RedisCacheHelper
using RedisCacheHelper;
// Rest of the codes...
//
CacheHelper.Set("myKey", myObject);
var cachedObject = CacheHelper.Get<MyType>("myKey");
//
// Rest of the codes...

License

RedisCacheHelper is released under the MIT License. You can find the full license details in the LICENSE file.

Made with ❤️ by NightmareGaurav.


Open For Contribution

We welcome contributions from the community! If you find any issues or have suggestions for improvements, feel free to open a pull request or issue. Your contributions help make this project better for everyone.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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
2.0.0 92 3/8/2024
1.0.2 119 9/29/2023
1.0.1 143 8/17/2023
1.0.0 140 8/16/2023