Upravit

Sdílet prostřednictvím


RedisGrainStorage Class

Definition

Redis-based grain storage provider

public class RedisGrainStorage : Orleans.ILifecycleParticipant<Orleans.Runtime.ISiloLifecycle>, Orleans.Storage.IGrainStorage
type RedisGrainStorage = class
    interface IGrainStorage
    interface ILifecycleParticipant<ISiloLifecycle>
Public Class RedisGrainStorage
Implements IGrainStorage, ILifecycleParticipant(Of ISiloLifecycle)
Inheritance
RedisGrainStorage
Implements

Constructors

RedisGrainStorage(String, RedisStorageOptions, IGrainStorageSerializer, IOptions<ClusterOptions>, ILogger<RedisGrainStorage>)

Creates a new instance of the RedisGrainStorage type.

Methods

ClearStateAsync<T>(String, GrainId, IGrainState<T>)

Delete / Clear data function for this storage instance.

Participate(ISiloLifecycle)

Adds the provided observer as a participant in the lifecycle.

ReadStateAsync<T>(String, GrainId, IGrainState<T>)

Read data function for this storage instance.

WriteStateAsync<T>(String, GrainId, IGrainState<T>)

Write data function for this storage instance.

Applies to