Skip to content

Class RedisDataOptions

Namespace: Cephalon.Data.Redis.Configuration
Assembly: Cephalon.Data.Redis.dll

Configuration options for the Redis data provider (Engine:Data:Redis).

public sealed class RedisDataOptions

objectRedisDataOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Gets the default Redis connection string used when neither connection setting is supplied.

public const string DefaultConnectionString = "localhost:6379"

string

Gets the canonical provider identifier emitted by the pack.

public const string ProviderId = "redis"

string

Gets the configuration section path used by default for Redis data settings.

public const string SectionPath = "Engine:Data:Redis"

string

Gets or sets the StackExchange.Redis connection string or configuration.

public string? ConnectionString { get; set; }

string?

Use either or .

Gets or sets the root ConnectionStrings entry name to resolve for Redis.

public string? ConnectionStringName { get; set; }

string?

Use either or .

Gets or sets the key prefix applied to all Cephalon-managed Redis keys (e.g. “myapp:”).

public string KeyPrefix { get; set; }

string

Gets or sets a value indicating whether the pack should register the Redis-backed inbox implementation.

public bool RegisterInbox { get; set; }

bool

Gets or sets a value indicating whether the pack should register the Redis-backed outbox implementation.

public bool RegisterOutbox { get; set; }

bool