Akka.Persistence.Redis.Hosting
1.5.55
Prefix Reserved
dotnet add package Akka.Persistence.Redis.Hosting --version 1.5.55
NuGet\Install-Package Akka.Persistence.Redis.Hosting -Version 1.5.55
<PackageReference Include="Akka.Persistence.Redis.Hosting" Version="1.5.55" />
<PackageVersion Include="Akka.Persistence.Redis.Hosting" Version="1.5.55" />
<PackageReference Include="Akka.Persistence.Redis.Hosting" />
paket add Akka.Persistence.Redis.Hosting --version 1.5.55
#r "nuget: Akka.Persistence.Redis.Hosting, 1.5.55"
#:package Akka.Persistence.Redis.Hosting@1.5.55
#addin nuget:?package=Akka.Persistence.Redis.Hosting&version=1.5.55
#tool nuget:?package=Akka.Persistence.Redis.Hosting&version=1.5.55
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,
Action<AkkaPersistenceSnapshotBuilder>? snapshotBuilder = 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
Action<AkkaPersistenceJournalBuilder>? journalBuilder = null,
Action<AkkaPersistenceSnapshotBuilder>? snapshotBuilder = null)
Parameters
configurationStringstringConnection string used for database access. Connection string as described here: https://stackexchange.github.io/StackExchange.Redis/Configuration#basic-configuration-strings.
modePersistenceModeDetermines which settings should be added by this method call. Default:
PersistenceMode.BothPersistenceMode.Journal: Only add the journal settingsPersistenceMode.SnapshotStore: Only add the snapshot store settingsPersistenceMode.Both: Add both journal and snapshot store settings
autoInitializeboolShould the Redis store collection be initialized automatically. Default:
falsejournalBuilderAction<AkkaPersistenceJournalBuilder>An Action delegate used to configure an
AkkaPersistenceJournalBuilderinstance. Used to configure health check.snapshotBuilderAction<AkkaPersistenceSnapshotBuilder>An Action delegate used to configure an
AkkaPersistenceSnapshotBuilderinstance. Used to configure health check.journalConfiguratorAction<RedisJournalOptions>An Action delegate to configure a
RedisJournalOptionsinstance.snapshotConfiguratorAction<RedisSnapshotOptions>An Action delegate to configure a
RedisSnapshotOptionsinstance.journalOptionsRedisJournalOptionsAn
RedisJournalOptionsinstance to configure the Redis journal store.snapshotOptionsRedisSnapshotOptionsAn
RedisSnapshotOptionsinstance to configure the Redis snapshot store.
Microsoft.Extensions.Diagnostics.HealthChecks Integration
Akka.Persistence.Redis.Hosting includes built-in health check support for Redis persistence plugins through the WithHealthCheck() extension methods. These health checks integrate with Microsoft.Extensions.Diagnostics.HealthChecks to monitor the health of your Redis journal and snapshot stores.
Built-in Health Checks
All health checks are tagged with akka, persistence, and mongodb for easy filtering.
Configuring Health Checks
You can add health checks when configuring Redis persistence using the WithHealthCheck() method:
builder
.WithRedisPersistence(
journalOptions: new RedisJournalOptions
{
ConfigurationString = "your-redis-connection-string",
},
snapshotOptions: new RedisSnapshotOptions
{
ConfigurationString = "your-redis-connection-string",
},
journalBuilder: journal => journal.WithHealthCheck(HealthStatus.Degraded),
snapshotBuilder: snapshot.WithHealthCheck(HealthStatus.Degraded));
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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.55)
- Akka.Persistence.Redis (>= 1.5.55)
-
net6.0
- Akka.Persistence.Hosting (>= 1.5.55)
- Akka.Persistence.Redis (>= 1.5.55)
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.55](https://github.com/akkadotnet/akka.net/releases/tag/1.5.55)
* Upgraded to [Akka.Hosting 1.5.55](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.55)
* [Add Redis connectivity health checks](https://github.com/akkadotnet/Akka.Persistence.Redis/pull/447)
Adds new `WithConnectivityCheck()` methods for proactive Redis connectivity verification with customizable tags.