Redis distributed cache (L2) configuration for HybridCache via Fluens builder infrastructure.
$ dotnet add package Fluens.Caching.RedisRedis distributed cache (L2) configuration for HybridCache via Fluens builder infrastructure.
dotnet add package Fluens.Caching.Redis
fluensBuilder.AddRedisCaching(opts =>
{
opts.ConnectionString = "localhost:6379";
});
Configuration section: Fluens:Caching:Redis. Instance name defaults to {AppInfo.CachePrefix}: for key isolation.
Automatically registers base caching (Fluens.Caching) if not already configured.
| Property | Type | Default | Description |
|---|---|---|---|
Enabled | bool | true | When false, Redis is not registered (HybridCache L1 still works) |
ConnectionString | string? | null | Redis connection string. Required when enabled |
InstanceName | string? | null | Redis key prefix. Defaults to {AppInfo.CachePrefix}: when not set |
This project is licensed under the MIT License.