RedisGrainStorage Class
Definition
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-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. |