Fluens.Caching
0.7.9
dotnet add package Fluens.Caching --version 0.7.9
NuGet\Install-Package Fluens.Caching -Version 0.7.9
<PackageReference Include="Fluens.Caching" Version="0.7.9" />
<PackageVersion Include="Fluens.Caching" Version="0.7.9" />
<PackageReference Include="Fluens.Caching" />
paket add Fluens.Caching --version 0.7.9
#r "nuget: Fluens.Caching, 0.7.9"
#:package Fluens.Caching@0.7.9
#addin nuget:?package=Fluens.Caching&version=0.7.9
#tool nuget:?package=Fluens.Caching&version=0.7.9
Fluens.Caching
HybridCache configuration helper for Fluens builder infrastructure.
Installation
dotnet add package Fluens.Caching
Usage
fluensBuilder.AddCaching(c =>
{
c.Options.DefaultExpirationSeconds = 300; // default: 300 (5 min)
c.Options.DefaultLocalExpirationSeconds = 60; // default: 60 (1 min)
c.Options.MaximumPayloadBytes = 1_048_576; // default: 1 MB
c.Options.MaximumKeyLength = 1024; // default: 1024
});
Configuration section: Fluens:Caching. Consumers inject HybridCache directly. Binding order is
bind, callback, validate - a value set only from the callback (never present in configuration) is
still validated, and it is never silently reverted back to defaults by a later AddCaching(...) call.
CachingBuilder
The optional Action<CachingBuilder> callback exposes:
Options- theCachingOptionsinstance mutated inside the callback; validation runs right after the callback returns, so an invalid value set here throwsOptionsException<CachingOptions>at registration time.Fluens- theIFluensBuildertheAddCachingcall was made on, so a provider package (e.g.Fluens.Caching.Redis) can readAppInfoor call back into other Fluens registrations.AddProvider(providerKey, register)- lets a provider package (e.g. Redis) queue its own service registrations, applied only onceCachingOptions.Enabledis confirmedtrue.
CachingBuilder deliberately does not expose the raw IServiceCollection - a provider must queue its registration through AddProvider so nothing is registered until AddCaching confirms caching is enabled.
CachingOptions
| Property | Type | Default | Description |
|---|---|---|---|
Enabled |
bool |
true |
When false, no caching services are registered |
DefaultExpirationSeconds |
int |
300 |
L2 (distributed) cache expiration in seconds |
DefaultLocalExpirationSeconds |
int |
60 |
L1 (in-memory) cache expiration in seconds |
MaximumPayloadBytes |
int |
1048576 |
Maximum serialized size of a cache entry in bytes |
MaximumKeyLength |
int |
1024 |
Maximum length of a cache key |
License
This project is licensed under the MIT License.
| 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
- Fluens (>= 0.7.9)
- Microsoft.Extensions.Caching.Hybrid (>= 10.10.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Fluens.Caching:
| Package | Downloads |
|---|---|
|
Fluens.Caching.Redis
Redis distributed cache (L2) configuration for HybridCache via Fluens builder infrastructure. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.9 | 42 | 9/11/2026 |
| 0.7.8 | 38 | 9/10/2026 |
| 0.7.7 | 41 | 9/10/2026 |
| 0.7.6 | 154 | 7/1/2026 |
| 0.7.5 | 136 | 6/22/2026 |
| 0.7.4 | 149 | 6/18/2026 |
| 0.7.2 | 122 | 6/18/2026 |
| 0.7.1 | 147 | 6/18/2026 |
| 0.6.6 | 284 | 3/11/2026 |
| 0.6.5 | 120 | 3/4/2026 |
| 0.6.4 | 123 | 3/4/2026 |
| 0.6.3 | 125 | 3/3/2026 |
| 0.6.2 | 125 | 3/2/2026 |
| 0.6.1 | 120 | 3/2/2026 |
| 0.6.0 | 124 | 3/1/2026 |
| 0.5.7 | 131 | 3/1/2026 |
| 0.5.6 | 130 | 3/1/2026 |
| 0.5.5 | 129 | 2/28/2026 |
| 0.5.4 | 130 | 2/28/2026 |
| 0.5.3 | 127 | 2/27/2026 |