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 RedisDataOptionsInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Fields
Section titled “Fields”DefaultConnectionString
Section titled “ DefaultConnectionString”Gets the default Redis connection string used when neither connection setting is supplied.
public const string DefaultConnectionString = "localhost:6379"Field Value
Section titled “Field Value”ProviderId
Section titled “ ProviderId”Gets the canonical provider identifier emitted by the pack.
public const string ProviderId = "redis"Field Value
Section titled “Field Value”SectionPath
Section titled “ SectionPath”Gets the configuration section path used by default for Redis data settings.
public const string SectionPath = "Engine:Data:Redis"Field Value
Section titled “Field Value”Properties
Section titled “Properties”ConnectionString
Section titled “ ConnectionString”Gets or sets the StackExchange.Redis connection string or configuration.
public string? ConnectionString { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Use either
ConnectionStringName
Section titled “ ConnectionStringName”Gets or sets the root ConnectionStrings entry name to resolve for Redis.
public string? ConnectionStringName { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Use either
KeyPrefix
Section titled “ KeyPrefix”Gets or sets the key prefix applied to all Cephalon-managed Redis keys (e.g. “myapp:”).
public string KeyPrefix { get; set; }Property Value
Section titled “Property Value”RegisterInbox
Section titled “ RegisterInbox”Gets or sets a value indicating whether the pack should register the Redis-backed inbox implementation.
public bool RegisterInbox { get; set; }Property Value
Section titled “Property Value”RegisterOutbox
Section titled “ RegisterOutbox”Gets or sets a value indicating whether the pack should register the Redis-backed outbox implementation.
public bool RegisterOutbox { get; set; }