Class DistributedCacheEventStreamStoreOptions
- Namespace
- ModelContextProtocol.Server
- Assembly
- ModelContextProtocol.dll
Configuration options for DistributedCacheEventStreamStore.
public sealed class DistributedCacheEventStreamStoreOptions
- Inheritance
-
DistributedCacheEventStreamStoreOptions
- Inherited Members
Properties
EventAbsoluteExpiration
Gets or sets the absolute expiration for individual events in the cache.
public TimeSpan? EventAbsoluteExpiration { get; set; }
Property Value
Remarks
Events will be evicted from the cache after this time period, regardless of access.
EventSlidingExpiration
Gets or sets the sliding expiration for individual events in the cache.
public TimeSpan? EventSlidingExpiration { get; set; }
Property Value
Remarks
Events are refreshed on each access. If an event is not accessed within this time period, it may be evicted from the cache.
MetadataAbsoluteExpiration
Gets or sets the absolute expiration for stream metadata in the cache.
public TimeSpan? MetadataAbsoluteExpiration { get; set; }
Property Value
Remarks
Stream metadata will be evicted from the cache after this time period, regardless of access.
MetadataSlidingExpiration
Gets or sets the sliding expiration for stream metadata in the cache.
public TimeSpan? MetadataSlidingExpiration { get; set; }
Property Value
Remarks
Stream metadata includes mode and completion status. This should typically be set to a longer duration than event expiration to allow for resumability.
StreamReaderPollingInterval
Gets or sets the interval between polling attempts when a stream reader is waiting for new events in the default Streaming mode.
public TimeSpan StreamReaderPollingInterval { get; set; }
Property Value
Remarks
This only affects stream readers. A shorter interval provides lower latency for new events but increases cache access frequency.