-
Notifications
You must be signed in to change notification settings - Fork 1
/
RedisSentinelOptions.cs
39 lines (32 loc) · 1.17 KB
/
RedisSentinelOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Microsoft.Extensions.Options;
namespace ylast.Caching.ServiceStackRedis {
public class RedisSentinelOptions : IOptions<RedisSentinelOptions> {
RedisSentinelOptions IOptions<RedisSentinelOptions>.Value => this;
/// <summary>
/// Sentinel hosts, e.g, "sentinel:6390, "sentinel"
/// </summary>
public string[] Hosts { get; set; }
/// <summary>
/// The name of the master.
/// </summary>
public string MasterGroup { get; set; }
/// <summary>
/// Instance name, aka prefix, for sharing a single backend with multiple apps/services.
/// </summary>
/// <value></value>
public string InstanceName { get; set; }
/// <summary>
/// Default database
/// </summary>
public int DefaultDatabase { get; set; }
/// <summary>
/// Whether to look for other sentinels, default: true.
/// </summary>
public bool ScanForOtherSentinels { get; set; } = true;
/// <summary>
/// Redis server auth password if any
/// </summary>
/// <value></value>
public string AuthPass { get; set; }
}
}