Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.76 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.76 KB

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