Muonroi.Caching.Memory 2.0.2

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

Muonroi.Caching.Memory

NuGet Status NuGet Download

Multi-level caching memory implementations for the Muonroi ecosystem.

Overview

Provides IMultiLevelCacheService (L1 memory + L2 Redis), DistributedCacheKeyBuilder for tenant-aware key generation, and AddMultiLevelCaching() registration.

Features

  • Multi-Level Caching: Exposes IMultiLevelCacheService for layered L1/L2 data access.
  • Tenant-Aware Keys: Uses DistributedCacheKeyBuilder to prevent data collision across tenants.
  • Easy Registration: Exposes the AddMultiLevelCaching() extension method for easy DI setup.

Installation

dotnet add package Muonroi.Caching.Memory

Quick Start

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMultiLevelCaching();

var app = builder.Build();
var cache = app.Services.GetRequiredService<IMultiLevelCacheService>();

Ecosystem Combinations

  • With Muonroi.Caching.Redis: Connects the IMultiLevelCacheService L1 cache with a distributed L2 Redis cache.
  • Full Stack Example:
builder.Services.AddMultiLevelCaching()
                .AddRedisCache(options => ...);

Samples

Check out the Samples directory for full examples.

License

MIT

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 (5)

Showing the top 5 NuGet packages that depend on Muonroi.Caching.Memory:

Package Downloads
Muonroi.Data.EntityFrameworkCore

Entity Framework Core infrastructure for Muonroi: MDbContext with audit, soft-delete, multi-tenant filters, and repository base.

Muonroi.RuleEngine.Runtime

Runtime orchestration layer for Muonroi RuleEngine, providing execution pipelines and integration points for rule evaluation services.

Muonroi.Auth

JWT authentication infrastructure: token validation, DPoP binding, claim extraction, and Muonroi auth middleware.

Muonroi.AspNetCore

ASP.NET Core integration: auto-CRUD controllers, middleware pipeline, license protection, and Muonroi hosting extensions.

Muonroi.BuildingBlock.All

Metapackage for Muonroi Building Block - Includes all sub-packages for a complete infrastructure setup.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 480 8/26/2026
2.0.1 380 8/26/2026
2.0.0 404 8/14/2026