Skip to content

RedisStorageOptions Properties

Redis grain storage options.

CreateMultiplexer

getset
View source
public Func<RedisStorageOptions, Task<(IConnectionMultiplexer Multiplexer, bool IsShared)>> RedisStorageOptions.CreateMultiplexer
The delegate used to create a Redis connection multiplexer and indicate whether it is shared.

EntryExpiry

getset
View source
public TimeSpan? EntryExpiry
Entry expiry, null by default. A value should be set only for ephemeral environments, such as testing environments. Setting a value different from null will cause duplicate activations in the cluster.

GetStorageKey

getset
View source
public Func<string, GrainId, RedisKey>? GetStorageKey
Gets the Redis key for the provided grain type and grain identifier. If not set, the default implementation will be used, which is equivalent to {ServiceId}/state/{grainId}/{grainType}.

InitStage

getset
View source
public int InitStage
Stage of silo lifecycle where storage should be initialized. Storage must be initialized prior to use.