Class RedisConfiguration
- Namespace
- OpenSettings.Configurations
- Assembly
- OpenSettings.dll
Represents the configuration for Redis. These settings determine whether Redis is active, how to connect to Redis, and how to interact with Redis channels.
public class RedisConfiguration
- Inheritance
-
RedisConfiguration
- Inherited Members
Properties
Channel
Gets or sets the Redis channel used for communication. This channel is used to send or receive messages related to settings.
public string Channel { get; set; }
Property Value
Configuration
Gets or sets the configuration string for Redis. This property is used to parse the configuration string for Redis connections, typically via Parse(string) in the Redis StackExchange library.
public string Configuration { get; set; }
Property Value
- string
A string representing the configuration for Redis, which is parsed using Parse(string) to establish Redis connection settings.
Exceptions
- ArgumentNullException
Thrown when
value
is null or whitespace while IsActive istrue
.
IsActive
Gets or sets a value indicating whether Redis is active.
When true
, Redis is enabled and used for communication.
public bool IsActive { get; set; }