Table of Contents

Class DistributedCacheOptions

Namespace
Excalibur.Dispatch.Caching
Assembly
Excalibur.Dispatch.Caching.dll

Configuration specific to distributed caching.

public sealed class DistributedCacheOptions
Inheritance
DistributedCacheOptions
Inherited Members
Extension Methods

Properties

KeyPrefix

Gets or sets the key prefix to use for all distributed cache entries. Helps avoid key collisions in shared cache stores.

[Required]
public string KeyPrefix { get; set; }

Property Value

string

The key prefix to use for all distributed cache entries.

MaxRetryAttempts

Gets or sets the maximum retry attempts for distributed cache operations. Default is 3.

[Range(0, 2147483647)]
public int MaxRetryAttempts { get; set; }

Property Value

int

The maximum retry attempts for distributed cache operations.

RetryDelay

Gets or sets the delay between retry attempts. Default is 100ms.

public TimeSpan RetryDelay { get; set; }

Property Value

TimeSpan

The delay between retry attempts.

UseBinarySerialization

Gets or sets a value indicating whether to use binary serialization for cached values. More efficient than JSON but less debuggable.

public bool UseBinarySerialization { get; set; }

Property Value

bool

true if binary serialization should be used for cached values; otherwise, false.