HostLoom.Caching.DependencyInjection
0.5.0
See the version list below for details.
dotnet add package HostLoom.Caching.DependencyInjection --version 0.5.0
NuGet\Install-Package HostLoom.Caching.DependencyInjection -Version 0.5.0
<PackageReference Include="HostLoom.Caching.DependencyInjection" Version="0.5.0" />
<PackageVersion Include="HostLoom.Caching.DependencyInjection" Version="0.5.0" />
<PackageReference Include="HostLoom.Caching.DependencyInjection" />
paket add HostLoom.Caching.DependencyInjection --version 0.5.0
#r "nuget: HostLoom.Caching.DependencyInjection, 0.5.0"
#:package HostLoom.Caching.DependencyInjection@0.5.0
#addin nuget:?package=HostLoom.Caching.DependencyInjection&version=0.5.0
#tool nuget:?package=HostLoom.Caching.DependencyInjection&version=0.5.0
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 | Versions 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. |
-
net10.0
- HostLoom.Caching (>= 0.5.0)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
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 | 47 | 10/25/2026 |
| 0.16.1 | 94 | 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 | 115 | 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 |