Table of Contents

Class RedisSettings

Namespace
KadicAuth.Application.Common
Assembly
KadicAuth.Application.dll

Controls the distributed cache backend used by PermissionService (GAP-16). Mapped from the "Redis" section in appsettings. When Enabled is false the existing IMemoryCache-based PermissionService is used (suitable for single-instance deployments).

public sealed class RedisSettings
Inheritance
object
RedisSettings

Fields

SectionName

public const string SectionName = "Redis"

Field Value

string

Properties

CacheTtlMinutes

Absolute TTL in minutes for permission cache entries. Default: 5 — matches the existing IMemoryCache TTL.

public int CacheTtlMinutes { get; set; }

Property Value

int

ConnectionString

Redis connection string (e.g. "localhost:6379" or Azure Cache connection string). Required when Enabled is true.

public string ConnectionString { get; set; }

Property Value

string

Enabled

Activates the Redis-backed distributed permission cache. Default: false — keeps backward-compatible IMemoryCache behaviour on deploy.

public bool Enabled { get; set; }

Property Value

bool

InstanceName

Optional Redis instance name prefix to namespace all keys. Default: "kadic-auth".

public string InstanceName { get; set; }

Property Value

string