Skip to content

StreamCacheEvictionOptions Properties

Configuration options for stream cache eviction.

DataMaxAgeInCache

getset
View source
public TimeSpan DataMaxAgeInCache
Gets or sets the difference in time between the newest and oldest messages in the cache. Any messages older than this will be purged from the cache.

DataMinTimeInCache

getset
View source
public TimeSpan DataMinTimeInCache
Gets or sets the minimum time a message will stay in cache before it is available for time based purge.

MetadataMinTimeInCache

getset
View source
public TimeSpan? MetadataMinTimeInCache
Gets or sets the minimum time that message metadata (StreamSequenceToken) will stay in cache before it is available for time based purge. Used to avoid cache miss if the full message was purged. Set to null to disable this tracking.