Class RedisOptions
The redis configuration element.
Inherited Members
Namespace:CacheManager.Redis
Assembly:CacheManager.StackExchange.Redis.dll
Syntax
public sealed class RedisOptions : ConfigurationElement
Properties
| Improve this Doc View SourceAllowAdmin
Gets or sets a value indicating whether advanced commands are allowed.
Declaration
[ConfigurationProperty("allowAdmin", IsRequired = false, DefaultValue = false)]
public bool AllowAdmin { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
ConnectionString
Gets or sets the connection string.
Declaration
[ConfigurationProperty("connectionString", IsRequired = false)]
public string ConnectionString { get; set; }
Property Value
Type | Description |
---|---|
String | The connection string. |
ConnectionTimeout
Gets or sets the connection timeout.
Declaration
[ConfigurationProperty("connectionTimeout", IsRequired = false, DefaultValue = 5000)]
public int ConnectionTimeout { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The connection timeout. |
Database
Gets or sets the database.
Declaration
[ConfigurationProperty("database", IsRequired = false, DefaultValue = 0)]
public int Database { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The database. |
EnableKeyspaceNotifications
Gets or sets a value indicating whether keyspace events should be enabled and the redis cache handle should listen for them.
Declaration
[ConfigurationProperty("enableKeyspaceNotifications", IsRequired = false, DefaultValue = false)]
public bool EnableKeyspaceNotifications { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Endpoints
Gets the endpoints.
Declaration
[ConfigurationProperty("endpoints")]
[ConfigurationCollection(typeof (EndpointCollection), AddItemName = "endpoint")]
public EndpointCollection Endpoints { get; }
Property Value
Type | Description |
---|---|
EndpointCollection | The endpoints. |
Id
Gets or sets the identifier.
Declaration
[ConfigurationProperty("id", IsKey = true, IsRequired = true)]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
String | The identifier. |
Password
Gets or sets the password.
Declaration
[ConfigurationProperty("password", IsRequired = false)]
public string Password { get; set; }
Property Value
Type | Description |
---|---|
String | The password. |
Ssl
Gets or sets a value indicating whether SSL should be enabled or not.
Declaration
[ConfigurationProperty("ssl", IsRequired = false, DefaultValue = false)]
public bool Ssl { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
SslHost
Gets or sets the SSL host.
Declaration
[ConfigurationProperty("sslHost", IsRequired = false)]
public string SslHost { get; set; }
Property Value
Type | Description |
---|---|
String | The SSL host. |
StrictCompatibilityModeVersion
Gets or sets a value setting an explicit version compatibility mode.
Declaration
[ConfigurationProperty("strictCompatibilityModeVersion", IsRequired = false)]
public string StrictCompatibilityModeVersion { get; set; }
Property Value
Type | Description |
---|---|
String | The Redis version to use. |
TwemproxyEnabled
Gets or sets a value indicating whether Twemproxy is used or not.
Declaration
[ConfigurationProperty("twemproxyEnabled", IsRequired = false, DefaultValue = false)]
public bool TwemproxyEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|