Akka.Persistence.Redis.Hosting 1.6.0-beta3

Prefix Reserved
This is a prerelease version of Akka.Persistence.Redis.Hosting.
dotnet add package Akka.Persistence.Redis.Hosting --version 1.6.0-beta3
                    
NuGet\Install-Package Akka.Persistence.Redis.Hosting -Version 1.6.0-beta3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Akka.Persistence.Redis.Hosting" Version="1.6.0-beta3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Akka.Persistence.Redis.Hosting" Version="1.6.0-beta3" />
                    
Directory.Packages.props
<PackageReference Include="Akka.Persistence.Redis.Hosting" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Akka.Persistence.Redis.Hosting --version 1.6.0-beta3
                    
#r "nuget: Akka.Persistence.Redis.Hosting, 1.6.0-beta3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Akka.Persistence.Redis.Hosting@1.6.0-beta3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Akka.Persistence.Redis.Hosting&version=1.6.0-beta3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Akka.Persistence.Redis.Hosting&version=1.6.0-beta3&prerelease
                    
Install as a Cake Tool

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

  • configurationString string

    Connection string used for database access. Connection string as described here: https://stackexchange.github.io/StackExchange.Redis/Configuration#basic-configuration-strings.

  • mode PersistenceMode

    Determines which settings should be added by this method call. Default: PersistenceMode.Both

    • PersistenceMode.Journal: Only add the journal settings
    • PersistenceMode.SnapshotStore: Only add the snapshot store settings
    • PersistenceMode.Both: Add both journal and snapshot store settings
  • autoInitialize bool

    Should the Redis store collection be initialized automatically. Default: false

  • journalBuilder Action<AkkaPersistenceJournalBuilder>

    An Action delegate used to configure an AkkaPersistenceJournalBuilder instance. Used to configure health check.

  • snapshotBuilder Action<AkkaPersistenceSnapshotBuilder>

    An Action delegate used to configure an AkkaPersistenceSnapshotBuilder instance. Used to configure health check.

  • journalConfigurator Action<RedisJournalOptions>

    An Action delegate to configure a RedisJournalOptions instance.

  • snapshotConfigurator Action<RedisSnapshotOptions>

    An Action delegate to configure a RedisSnapshotOptions instance.

  • journalOptions RedisJournalOptions

    An RedisJournalOptions instance to configure the Redis journal store.

  • snapshotOptions RedisSnapshotOptions

    An RedisSnapshotOptions instance 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.