Exemple #1
0
 public RedisHost(RedisModule module, RedisSettings.Server server)
 {
     Module               = module;
     HostName             = server.Name;
     Region               = Module.Settings.Replication?.RegionHostRegex?.Match(HostName)?.Value ?? "Global";
     ReplicationGroupName = server.ReplicationGroup;
 }
Exemple #2
0
 public RedisHost(RedisSettings.Server server)
 {
     HostName             = server.Name;
     Region               = Current.Settings.Redis.Replication?.RegionHostRegex?.Match(HostName)?.Value ?? "Global";
     ReplicationGroupName = server.ReplicationGroup;
 }