Class CacheOptions
- Namespace
- Foundation.Data.Doublets.Cli
- Assembly
- Foundation.Data.Doublets.Cli.dll
What a CacheLinksDecorator<TLinkAddress> enforces. Each is optional, and the default is neither.
public sealed record CacheOptions : IEquatable<CacheOptions>
- Inheritance
-
CacheOptions
- Implements
- Inherited Members
Constructors
CacheOptions(int?, ulong?)
What a CacheLinksDecorator<TLinkAddress> enforces. Each is optional, and the default is neither.
public CacheOptions(int? MaxLinks = null, ulong? TimeToLive = null)
Parameters
MaxLinksint?How many links the store may hold, reached by evicting.
TimeToLiveulong?The milliseconds a link created here has before it comes due.
Properties
MaxLinks
How many links the store may hold, reached by evicting.
public int? MaxLinks { get; init; }
Property Value
- int?
TimeToLive
The milliseconds a link created here has before it comes due.
public ulong? TimeToLive { get; init; }