Class RedisSentinelCacheOption
- Namespace
- Arc4u.Configuration.Redis
- Assembly
- Arc4u.Caching.dll
The options of a Redis Sentinel cache.
public class RedisSentinelCacheOption
- Inheritance
-
RedisSentinelCacheOption
- Inherited Members
Properties
DefaultDatabase
Index of the Redis database to use. Default is 0.
public int? DefaultDatabase { get; set; }
Property Value
- int?
InstanceName
Name of this cache instance (optional, used for logging or multi-instance scenarios)
public string InstanceName { get; set; }
Property Value
MasterName
The name of the master in Sentinel configuration
public string MasterName { get; set; }
Property Value
RedisPassword
Password for Redis master authentication
public string? RedisPassword { get; set; }
Property Value
SentinelEndpoints
List of Sentinel endpoints (host:port)
public string[] SentinelEndpoints { get; set; }
Property Value
- string[]
SerializerName
Optional serializer name for the cache
public string? SerializerName { get; set; }