Cachify.AspNetCore 1.0.3

dotnet add package Cachify.AspNetCore --version 1.0.3
                    
NuGet\Install-Package Cachify.AspNetCore -Version 1.0.3
                    
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="Cachify.AspNetCore" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cachify.AspNetCore" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Cachify.AspNetCore" />
                    
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 Cachify.AspNetCore --version 1.0.3
                    
#r "nuget: Cachify.AspNetCore, 1.0.3"
                    
#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 Cachify.AspNetCore@1.0.3
                    
#: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=Cachify.AspNetCore&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Cachify.AspNetCore&version=1.0.3
                    
Install as a Cake Tool

Cachify

A modular caching stack for .NET with layered L1/L2 support


Quickstart

builder.Services.AddCachify(options =>
{
    options.KeyPrefix = "myapp";
    options.DefaultTtl = TimeSpan.FromMinutes(5);
    options.JitterRatio = 0.1;

    options.UseMemory();
    options.UseRedis(redis =>
    {
        redis.ConnectionString = "localhost:6379";
    });
});
var value = await cache.GetOrSetAsync(
    "user:42",
    async ct => await LoadUserAsync(ct),
    new CacheEntryOptions { TimeToLive = TimeSpan.FromMinutes(2) },
    cancellationToken);

Features

  • L1/L2 Layered Caching - Memory + Redis with automatic population
  • Stampede Protection - Single factory execution per key
  • Backplane Invalidation - Distributed L1 cache sync via Redis Pub/Sub
  • Request Caching - HTTP response caching middleware for ASP.NET Core
  • Similarity Caching - Near-duplicate LLM request reuse (optional)
  • Resiliency - Soft/hard timeouts, stale fallback, background refresh
  • Observability - Metrics and tracing via OpenTelemetry

Package Structure

Package Description
Cachify.Abstractions Interfaces and core models
Cachify.Core Composite orchestration, stampede guard
Cachify.Memory In-memory provider (L1)
Cachify.Redis Redis provider (L2) + backplane
Cachify.AspNetCore DI + request caching middleware

Documentation

For full documentation, visit GitHub.

Product Compatible and additional computed target framework versions.
.NET 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.3 129 1/19/2026
1.0.2 126 1/19/2026
1.0.1 109 1/18/2026
1.0.0 116 1/18/2026