Redis
Persistence
In order to use Redis as a primary database for events and read models, some sort of persistence option should be used. Redis provides several configurable options.
Version and modules
In order to use Redis as an event store, Redis version 5 is required in order to use streams. The read and snapshot store require the Redis Search and JSON modules, which are included in Redis Stack.
Setup
To setup Redis together with EventFlow, install the NuGet package EventFlow.Redis
and add .ConfigureRedis(connectionString)
or .ConfigureRedis(IConnectionMultiplexer)
to your EventFlowOptions
configuration.
After the setup, you can configure Redis as your EventStore, ReadStore and SnapshotStore.