Pantheon.Caching.Hybrid 1.0.3

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

Pantheon.Caching.Hybrid

Combines ILocalCache (L1) and IExternalCache (L2) as one IDistributedCache. Reads check L1 first, then L2; an L2 hit is backfilled into L1 using the remaining TTL reported by L2. Writes and refreshes go to L2 and then L1; removals invalidate L1 and then L2.

The package depends only on the shared Pantheon.Caching contracts and does not select or reference provider implementations. Register a local provider and an external provider before HybridCachingModule. For example:

dotnet add package Pantheon.Caching.Hybrid
using Pantheon;
using Pantheon.Caching.Hybrid;
using Pantheon.Caching.InMemory;
using Pantheon.Caching.Redis;
using Pantheon.DependencyInjection;
using Microsoft.Extensions.Caching.Distributed;

var builder = DependencyInjectionApplicationBuilder.CreateBuilder(args);
var application =
    new ModularApplication<DependencyInjectionApplication, DependencyInjectionApplicationBuilder>(builder);
application.AddModule(new InMemoryCachingModule());
application.AddModule<RedisCachingModule, RedisCachingFluentConfiguration>(
    configuration => configuration.UseConnectionString("localhost:6379"));
application.AddModule(new HybridCachingModule());

// Inject IDistributedCache to use the combined cache.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 51 11/24/2026