HostLoom.Caching.DependencyInjection 0.13.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package HostLoom.Caching.DependencyInjection --version 0.13.0
                    
NuGet\Install-Package HostLoom.Caching.DependencyInjection -Version 0.13.0
                    
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="HostLoom.Caching.DependencyInjection" Version="0.13.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HostLoom.Caching.DependencyInjection" Version="0.13.0" />
                    
Directory.Packages.props
<PackageReference Include="HostLoom.Caching.DependencyInjection" />
                    
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 HostLoom.Caching.DependencyInjection --version 0.13.0
                    
#r "nuget: HostLoom.Caching.DependencyInjection, 0.13.0"
                    
#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 HostLoom.Caching.DependencyInjection@0.13.0
                    
#: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=HostLoom.Caching.DependencyInjection&version=0.13.0
                    
Install as a Cake Addin
#tool nuget:?package=HostLoom.Caching.DependencyInjection&version=0.13.0
                    
Install as a Cake Tool

HostLoom.Caching.DependencyInjection

This package registers the HostLoom.Caching kernel with Microsoft.Extensions.DependencyInjection:

services
    .AddHostLoomCaching(caching => caching.Namespace = "catalog")
    .UseInMemory();

AddHostLoomCaching registers ICache, binds CachingOptions, and validates them when the host starts, with every message naming the option key. The builder chooses exactly one store: UseInMemory() composes the in-process tier alone, and UseStore<TStore>(name) composes a distributed tier, which is the primitive a backend package such as HostLoom.Redis calls from its own UseRedis(). A second choice throws and names the first.

A distributed tier needs a serializer. UseSystemTextJson(options) takes JsonSerializerOptions whose TypeInfoResolver is set, typically a source-generated JsonSerializerContext, which is what keeps a trimmed or Native AOT publish warning-free. UseReflectionSerialization() is the documented opt-out, annotated so the publish reports it. UseSerializer<TSerializer>() installs any ICacheValueSerializer.

AddWarmup<TWarmup>() runs an ICacheWarmup once after the host starts, in the background, and registers a readiness contributor that Caching:Warmup:BlocksReadiness controls. The contributor exists under every store, so the flag means the same thing everywhere. AddHealthChecks() registers a readiness check tagged ready that asks the store's ICacheStoreHealthProbe; a store without one reports healthy with an explanation, and liveness is never touched.

The registration composes exactly what the kernel's public constructors compose, so a cache built with new TieredCache(...) in a test behaves like the one the container builds. See the HostLoom.Caching package README for the contracts and the fail-open rules.

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

Showing the top 2 NuGet packages that depend on HostLoom.Caching.DependencyInjection:

Package Downloads
HostLoom.Redis

Redis backend for HostLoom caching and locking: one owned connection, a cache store, an invalidation channel, a lock provider, and health probes over StackExchange.Redis.

HostLoom.Valkey

Standalone Valkey backend for HostLoom caching and coordination locks over ValkeyDotNet.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.17.0 53 10/25/2026
0.16.1 95 10/22/2026
0.16.0 184 10/14/2026
0.15.1 133 10/12/2026
0.15.0 128 10/4/2026
0.14.0 113 10/4/2026
0.13.0 116 9/28/2026
0.12.0 112 9/27/2026
0.11.0 113 9/25/2026
0.10.0 122 9/22/2026
0.9.0 119 9/22/2026
0.8.0 116 9/19/2026
0.7.0 126 9/17/2026
0.6.0 139 9/6/2026
0.5.0 128 9/5/2026
0.4.0 135 9/3/2026