Class CacheSettings
- Namespace
- FoundationaLLM.Common.Models.Cache
- Assembly
- FoundationaLLM.Common.dll
Provides a standard set of settings for caching.
public record CacheSettings : IEquatable<CacheSettings>
- Inheritance
-
CacheSettings
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
AbsoluteCacheExpirationSeconds
Absolute cache expiration in seconds.
public double? AbsoluteCacheExpirationSeconds { get; set; }
Property Value
CacheExpirationScanFrequencySeconds
Gets or sets the minimum length of time between successive scans for expired items in seconds.
public double? CacheExpirationScanFrequencySeconds { get; set; }
Property Value
CacheSizeLimit
The maximum number of items that can be stored in the cache.
public long? CacheSizeLimit { get; set; }
Property Value
- long?
EnableCache
Gets or sets a value indicating whether caching is enabled or not.
public bool EnableCache { get; set; }
Property Value
SlidingCacheExpirationSeconds
public double? SlidingCacheExpirationSeconds { get; set; }