Class Endpoint
Configuration section for the CacheManager.
Inherited Members
Namespace:CacheManager.Redis
Assembly:CacheManager.StackExchange.Redis.dll
Syntax
public sealed class Endpoint : ConfigurationElement
Examples
<cacheManager.redis>
<connections>
<connection id="redis1"
database="0"
database="113"
strictCompatibilityModeVersion="the redis version, e.g. 2.6, or leave null"
{ connectionString="redis0:6379,redis1:6380,keepAlive=180,allowAdmin=true" }
OR
{
allowAdmin="true|false"
password=""
ssl="true|false"
sslHost="string"
connectionTimeout="ms"
twemproxyEnabled="true|false"
}
>
<endpoints>
<endpoint host="127.0.0.1" port="6379" />
<endpoint host="127.0.0.1" port="6380"/>
</endpoints>
</connection>
<connection id="redisN">...</connection>
<connections/>
</cacheManager.redis>
Properties
| Improve this Doc View SourceHost
Gets or sets the host.
Declaration
[ConfigurationProperty("host", IsRequired = true)]
public string Host { get; set; }
Property Value
Type | Description |
---|---|
String | The host. |
Port
Gets or sets the port.
Declaration
[ConfigurationProperty("port", IsRequired = true)]
public int Port { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The port. |