Table of Contents

Class RedisSettings

Namespace
SEBT.Portal.Core.AppSettings
Assembly
SEBT.Portal.Core.dll
public class RedisSettings : IHaveConfigSectionName
Inheritance
object
RedisSettings
Implements

Properties

AcceptSelfSignedCertificates

Skips TLS certificate validation. For local development with self-signed certificates only — never set true in production environments.

public bool AcceptSelfSignedCertificates { get; set; }

Property Value

bool

Host

Redis server hostname or IP address.

public string? Host { get; set; }

Property Value

string

IsConfigured

Returns true when a host has been configured.

public bool IsConfigured { get; }

Property Value

bool

Password

Optional password for Redis AUTH.

public string? Password { get; set; }

Property Value

string

Port

Redis server port. Defaults to 6379.

public int Port { get; set; }

Property Value

int

SectionName

public static string SectionName { get; }

Property Value

string

Ssl

Whether to use TLS. Required for AWS Elasticache with in-transit encryption enabled.

public bool Ssl { get; set; }

Property Value

bool

SslHost

Expected hostname in the Redis server's TLS certificate. Required when Ssl is true and the certificate CN differs from Host, which is common with AWS Elasticache cluster endpoints.

public string? SslHost { get; set; }

Property Value

string