Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

RedisStorageOptions Class

Definition

Namespace:
Orleans.Persistence
Assembly:
Orleans.Persistence.Redis.dll
Package:
Microsoft.Orleans.Persistence.Redis v10.0.0
Package:
Microsoft.Orleans.Persistence.Redis v9.0.0
Package:
Microsoft.Orleans.Persistence.Redis v9.1.2

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Redis grain storage options.

public class RedisStorageOptions : Orleans.Storage.IStorageProviderSerializerOptions
type RedisStorageOptions = class
 interface IStorageProviderSerializerOptions
Public Class RedisStorageOptions
Implements IStorageProviderSerializerOptions
Inheritance
RedisStorageOptions
Implements

Constructors

Name Description
RedisStorageOptions()

Properties

Name Description
ConfigurationOptions

Gets or sets the Redis client configuration.

CreateMultiplexer

The delegate used to create a Redis connection multiplexer.

DeleteStateOnClear

Whether or not to delete state during a clear operation.

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

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}.

GrainStorageSerializer

Gets or sets the serializer to use for this storage provider.

InitStage

Stage of silo lifecycle where storage should be initialized. Storage must be initialized prior to use.

Methods

Name Description
DefaultCreateMultiplexer(RedisStorageOptions)

The default multiplexer creation delegate.

Applies to