Akka.Persistence.Redis.Hosting
1.5.29
Prefix Reserved
See the version list below for details.
dotnet add package Akka.Persistence.Redis.Hosting --version 1.5.29
NuGet\Install-Package Akka.Persistence.Redis.Hosting -Version 1.5.29
<PackageReference Include="Akka.Persistence.Redis.Hosting" Version="1.5.29" />
paket add Akka.Persistence.Redis.Hosting --version 1.5.29
#r "nuget: Akka.Persistence.Redis.Hosting, 1.5.29"
// Install Akka.Persistence.Redis.Hosting as a Cake Addin #addin nuget:?package=Akka.Persistence.Redis.Hosting&version=1.5.29 // Install Akka.Persistence.Redis.Hosting as a Cake Tool #tool nuget:?package=Akka.Persistence.Redis.Hosting&version=1.5.29
Akka.Persistence.Redis.Hosting
Akka.Hosting extension methods to add Akka.Persistence.Redis to an ActorSystem
Akka.Persistence.Redis Extension Methods
WithRedisPersistence() Method
public static AkkaConfigurationBuilder WithRedisPersistence(
this AkkaConfigurationBuilder builder,
string configurationString,
PersistenceMode mode = PersistenceMode.Both,
bool autoInitialize = true,
Action<AkkaPersistenceJournalBuilder>? journalBuilder = null,
string pluginIdentifier = "Redis",
bool isDefaultPlugin = true);
public static AkkaConfigurationBuilder WithRedisPersistence(
this AkkaConfigurationBuilder builder,
Action<RedisJournalOptions>? journalOptionConfigurator = null,
Action<RedisSnapshotOptions>? snapshotOptionConfigurator = null,
bool isDefaultPlugin = true)
public static AkkaConfigurationBuilder WithRedisPersistence(
this AkkaConfigurationBuilder builder,
RedisJournalOptions? journalOptions = null,
RedisSnapshotOptions? snapshotOptions = null)
Parameters
configurationString
stringConnection string used for database access. Connection string as described here: https://stackexchange.github.io/StackExchange.Redis/Configuration#basic-configuration-strings.
mode
PersistenceModeDetermines which settings should be added by this method call. Default:
PersistenceMode.Both
PersistenceMode.Journal
: Only add the journal settingsPersistenceMode.SnapshotStore
: Only add the snapshot store settingsPersistenceMode.Both
: Add both journal and snapshot store settings
autoInitialize
boolShould the Redis store collection be initialized automatically. Default:
false
journalBuilder
Action<AkkaPersistenceJournalBuilder>An Action delegate used to configure an
AkkaPersistenceJournalBuilder
instance. Used to configure Event AdaptersjournalConfigurator
Action<RedisJournalOptions>An Action delegate to configure a
RedisJournalOptions
instance.snapshotConfigurator
Action<RedisSnapshotOptions>An Action delegate to configure a
RedisSnapshotOptions
instance.journalOptions
RedisJournalOptionsAn
RedisJournalOptions
instance to configure the Redis journal store.snapshotOptions
RedisSnapshotOptionsAn
RedisSnapshotOptions
instance to configure the Redis snapshot store.
Example
using var host = new HostBuilder()
.ConfigureServices((context, services) =>
{
services.AddAkka("redisDemo", (builder, provider) =>
{
builder
.WithRedisPersistence("your-redis-connection-string");
});
}).Build();
await host.RunAsync();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Akka.Persistence.Hosting (>= 1.5.29)
- Akka.Persistence.Redis (>= 1.5.29)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Upgraded to [Akka.NET 1.5.29](https://github.com/akkadotnet/akka.net/releases/tag/1.5.29)
Upgraded to [Akka.Hosting 1.5.29](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.29)
[Bump StackExchange.Redis to 2.8.0](https://github.com/akkadotnet/Akka.Persistence.Redis/pull/345)