CacheShield 1.0.1

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

// Install CacheShield as a Cake Tool
#tool nuget:?package=CacheShield&version=1.0.1                

CacheShield is a .NET library that extends IDistributedCache to prevent cache stampede issues by using per-key asynchronous locks. It ensures that only one caller computes the value when it's missing or expired, improving performance and reducing load on your data source.

Inspired by: mgravell/DistributedCacheDemo

Features

  • Prevent Cache Stampede: Ensures only one caller computes a missing cache value.
  • Asynchronous Support: Fully supports asynchronous programming patterns.
  • Easy Integration: Works with any IDistributedCache implementation.
  • Configurable Cache Options: Includes a wide range of predefined cache durations for convenience.
  • Stateful and Stateless Methods: Supports both stateful and stateless getMethod delegates.
  • Custom Serialization: Allows customization of serialization mechanisms if needed.
  • MessagePack Serialization: Uses MessagePack for efficient binary serialization by default.
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.

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.1 95 10/16/2024
1.0.0 82 10/15/2024