Redis stream and storage providers for Microsoft Orleans.
Library | Version |
---|---|
Zuercher.Orleans.Persistence.Redis | |
Zuercher.Orleans.Streaming.Redis |
# For redis storage
dotnet add package Zuercher.Orleans.Persistence.Redis
# For redis streams
dotnet add package Zuercher.Orleans.Streaming.Redis
// Silo
siloBuilder
.AddRedisStreams("RedisProvider", // Add the Redis stream provider
c => c.ConfigureRedis(options => options.ConnectionString = Startup.Configuration.Redis.ConnectionString))
.AddRedisGrainStorage("PubSubStore", // Add the redis grain storage
c => c.Configure(options => options.ConnectionString = Startup.Configuration.Redis.ConnectionString));
// Client
clientBuilder
.AddRedisStreams("RedisProvider", // Add the Redis stream provider,
c => c.ConfigureRedis(options => options.ConnectionString = redisConfiguration.ConnectionString));
dotnet build
./scripts/start-test-deps.sh
dotnet test
./scripts/stop-test-deps.sh