TCIS.Caching.Hybrid 1.0.0-rc.11

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

TCIS.Caching.Hybrid

A Hybrid Caching solution (two-tier - L1/L2 Cache) for TCIS. Combines the instant speed of an In-Memory Cache (L1) with the distributed synchronization of a Redis Cache (L2). Features built-in Invalidation via Redis Pub/Sub (Backplane) to ensure L1 data remains synchronized across nodes when changes occur.

📦 Installation

Add the package to your project:

dotnet add package TCIS.Caching.Hybrid

(This package depends on both TCIS.Caching.InMemory and TCIS.Caching.Redis)

⚙️ Configuration (appsettings.json)

You need to configure InMemoryConfigs, RedisConfigs, as well as the specific HybridConfigs:

{
  "InMemoryConfigs": {
    "Enabled": true,
    "SizeLimit": 2048
  },
  "RedisConfigs": {
    "Enabled": true,
    "Host": "localhost",
    "Port": 6379
  },
  "HybridConfigs": {
    "Enabled": true,
    "HideErrors": true,
    "EnableInvalidation": true,
    "InvalidationChannel": "tcis:cache:invalidation"
  }
}

🚀 Registration / Setup (Dependency Injection)

In Program.cs, register using AddTHybridCaching:

// Register the Hybrid Caching architecture
builder.Services.AddTHybridCaching(builder.Configuration);

💡 Features and Workflow

When you inject ICacheService and use it in Hybrid mode:

  1. Read (GetAsync): The system checks the In-Memory cache (L1) first. If there's a cache miss, it checks Redis (L2). If L2 also misses, it will execute the factory function and store the result in both L1 and L2.
  2. Write/Update (SetAsync): New data is updated in both Redis (L2) and the current node's In-Memory cache (L1).
  3. Synchronization (Invalidation): Whenever an update occurs, a message (cache change notification) is broadcasted via Redis Pub/Sub (InvalidationChannel). Other nodes receiving this message will automatically remove or update their In-Memory (L1) version, keeping the entire system synchronized!
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.  net9.0 was computed.  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.0-rc.11 38 7/28/2026
1.0.0-rc.10 48 7/24/2026
1.0.0-rc.9 43 7/21/2026
1.0.0-rc.8 44 7/21/2026
1.0.0-rc.7 46 7/17/2026
1.0.0-rc.6 58 7/7/2026
1.0.0-rc.5 62 7/7/2026
1.0.0-rc.4 61 6/24/2026
1.0.0-rc.2 66 5/12/2026
1.0.0-rc.1 64 5/12/2026