Skip to content

berdon/Orleans.Providers.Redis

Repository files navigation

Orleans.Providers.Redis

Build Status

Redis stream and storage providers for Microsoft Orleans.

Library Version
Zuercher.Orleans.Persistence.Redis NugGetVersion
Zuercher.Orleans.Streaming.Redis NugGetVersion

Installation

# For redis storage
dotnet add package Zuercher.Orleans.Persistence.Redis

# For redis streams
dotnet add package Zuercher.Orleans.Streaming.Redis

Usage

// 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));

Development

Building

dotnet build

Running Tests

./scripts/start-test-deps.sh
dotnet test
./scripts/stop-test-deps.sh