Nucleo.Cache 8.0.1

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

// Install Nucleo.Cache as a Cake Tool
#tool nuget:?package=Nucleo.Cache&version=8.0.1                

Nucleo.Cache

Nucleo.Cache is a caching library designed to provide efficient and easy-to-use caching mechanisms for .NET applications.

Features

  • In-Memory Caching: Store and retrieve data quickly using in-memory storage.
  • Distributed Caching: Support for distributed cache providers like Redis.
  • Expiration Policies: Set absolute or sliding expiration for cached items.
  • Thread-Safe: Ensure thread safety for concurrent access.

Installation

To install Nucleo.Cache, use the following NuGet command:

dotnet add package Nucleo.Cache

Usage

Basic In-Memory Cache

using Nucleo.Cache;

var cache = new MemoryCache();
cache.Set("key", "value", TimeSpan.FromMinutes(5));

var value = cache.Get<string>("key");

Distributed Cache with Redis

using Nucleo.Cache;
using Nucleo.Cache.Redis;

var redisCache = new RedisCache("your-redis-connection-string");
redisCache.Set("key", "value", TimeSpan.FromMinutes(5));

var value = redisCache.Get<string>("key");

Contributing

Contributions are welcome! Please read the contributing guidelines before submitting a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or feedback, please open an issue on GitHub.

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

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nucleo.Cache:

Package Downloads
Nucleo.Cache.StackExchange

cache.stackExchange

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.1 89 10/7/2024
8.0.0 98 9/29/2024