Akka.Persistence.Redis.Hosting
1.6.0-beta3
Prefix Reserved
dotnet add package Akka.Persistence.Redis.Hosting --version 1.6.0-beta3
NuGet\Install-Package Akka.Persistence.Redis.Hosting -Version 1.6.0-beta3
<PackageReference Include="Akka.Persistence.Redis.Hosting" Version="1.6.0-beta3" />
<PackageVersion Include="Akka.Persistence.Redis.Hosting" Version="1.6.0-beta3" />
<PackageReference Include="Akka.Persistence.Redis.Hosting" />
paket add Akka.Persistence.Redis.Hosting --version 1.6.0-beta3
#r "nuget: Akka.Persistence.Redis.Hosting, 1.6.0-beta3"
#:package Akka.Persistence.Redis.Hosting@1.6.0-beta3
#addin nuget:?package=Akka.Persistence.Redis.Hosting&version=1.6.0-beta3&prerelease
#tool nuget:?package=Akka.Persistence.Redis.Hosting&version=1.6.0-beta3&prerelease
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 | net10.0 is compatible. 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. |
-
net10.0
- Akka.Persistence.Hosting (>= 1.6.0-beta3)
- Akka.Persistence.Redis (>= 1.6.0-beta3)
- Azure.Identity (>= 1.17.1)
- Microsoft.Azure.StackExchangeRedis (>= 3.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.0-beta3 | 67 | 10/7/2026 |
| 1.6.0-beta2 | 63 | 10/6/2026 |
| 1.5.68 | 9,500 | 6/1/2026 |
| 1.5.68-beta1 | 116 | 5/13/2026 |
| 1.5.67 | 431 | 4/28/2026 |
| 1.5.59 | 1,636 | 1/27/2026 |
| 1.5.55.1 | 793 | 10/29/2025 |
| 1.5.55 | 275 | 10/27/2025 |
| 1.5.53 | 12,248 | 10/15/2025 |
| 1.5.42 | 6,174 | 5/22/2025 |
| 1.5.37 | 1,147 | 1/23/2025 |
| 1.5.30 | 4,403 | 10/4/2024 |
| 1.5.29 | 308 | 10/2/2024 |
| 1.5.24 | 4,428 | 6/11/2024 |
| 1.5.13 | 7,532 | 10/6/2023 |
Built against Akka.NET 1.6.0-beta3.
**Fixes**
* Snapshots of types handled by a source-generated (`Akka.Serialization.V2`) serializer failed to load under 1.6.0-beta2, because the snapshot stored a CLR type name instead of the serializer's own manifest. Akka.NET 1.6.0-beta3 fixes this ([akkadotnet/akka.net#8784](https://github.com/akkadotnet/akka.net/issues/8784)). Snapshots that 1.6.0-beta2 already wrote this way are not repaired.
**Dependencies**
* Upgraded to Akka.NET 1.6.0-beta3 and Akka.Persistence.Hosting 1.6.0-beta3.