Muonroi.Caching.Abstractions 2.0.2

dotnet add package Muonroi.Caching.Abstractions --version 2.0.2
                    
NuGet\Install-Package Muonroi.Caching.Abstractions -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.Abstractions" 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.Abstractions" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Muonroi.Caching.Abstractions" />
                    
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.Abstractions --version 2.0.2
                    
#r "nuget: Muonroi.Caching.Abstractions, 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.Abstractions@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.Abstractions&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Muonroi.Caching.Abstractions&version=2.0.2
                    
Install as a Cake Tool

Muonroi.Caching.Abstractions

NuGet Status NuGet Download

Caching interfaces and telemetry descriptors for the Muonroi ecosystem.

Overview

Defines the core caching contracts like IMCacheService and configuration models such as CacheEntryOptions. It also includes diagnostics through DistributedCacheRuntimeTelemetry and DistributedCacheTelemetryDescriptor.

Features

  • Core Abstractions: Defines IMCacheService for ecosystem-wide caching strategies.
  • Telemetry: Exposes DistributedCacheRuntimeTelemetry and DistributedCacheTelemetryDescriptor for monitoring cache hits and misses.
  • Cache Configuration: Provides CacheEntryOptions for TTL and expiration policies.

Installation

dotnet add package Muonroi.Caching.Abstractions

Quick Start

public class MyCacheConsumer
{
    private readonly IMCacheService _cache;
    
    public MyCacheConsumer(IMCacheService cache)
    {
        _cache = cache;
    }
}

Ecosystem Combinations

  • With Muonroi.Caching.Memory: Implements the abstractions using local memory.
  • Full Stack Example:
builder.Services.AddSingleton<IMCacheService, MyCustomCacheImplementation>();

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

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

Package Downloads
Muonroi.Mediator

Mediator pattern implementation for Muonroi: command/query dispatching, pipeline behaviors, and validation integration.

Muonroi.Caching.Memory

Multi-level in-memory + distributed cache implementation with tenant-aware key isolation and stampede protection.

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.Tenancy.SiteProfile.Web

ASP.NET Core middleware and SignalR hot-reload for Muonroi.Tenancy.SiteProfile.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 562 8/26/2026
2.0.1 462 8/26/2026
2.0.0 488 8/14/2026