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