Table of Contents

Class RedisSnapshotStoreOptions

Namespace
Excalibur.EventSourcing.Redis
Assembly
Excalibur.EventSourcing.Redis.dll

Configuration options for the Redis snapshot store.

public sealed class RedisSnapshotStoreOptions
Inheritance
RedisSnapshotStoreOptions
Inherited Members

Properties

ConnectionString

Gets or sets the Redis connection string.

[Required]
public string ConnectionString { get; set; }

Property Value

string

The Redis connection string.

DatabaseIndex

Gets or sets the Redis database index.

[Range(-1, 15)]
public int DatabaseIndex { get; set; }

Property Value

int

The database index. Defaults to -1 (default database).

KeyPrefix

Gets or sets the key prefix for snapshot hashes.

public string KeyPrefix { get; set; }

Property Value

string

The key prefix for snapshot hashes. Defaults to "snap".

SnapshotTtlSeconds

Gets or sets the optional TTL for snapshots in seconds.

[Range(0, 2147483647)]
public int SnapshotTtlSeconds { get; set; }

Property Value

int

The snapshot TTL in seconds. Set to 0 for no expiration. Defaults to 0.