Class RouteCacheOptions
Package-wide settings: context.UseCache(o => …) / services.AddRedbRouteCache(o => …).
public sealed class RouteCacheOptions
Inheritance
Properties
DefaultProvider
Provider used when a node does not choose one. Default .
public CacheProvider DefaultProvider { get; set; }
DefaultTtl
TTL applied when a node does not give one; null = no expiration.
public TimeSpan? DefaultTtl { get; set; }
MaxEntries
Upper bound on entries of the package-created in-process cache (one unit per entry); null = unbounded. Ignored for a cache registered by the host.
public long? MaxEntries { get; set; }