public void Hello() { RedisScopeExecHelper.ExecScope(new ConnectionStringBuilder() { Host = RedisEnvironmentHelper.GetHost("redis_single"), Password = "******", MaxPoolSize = 1 }, (cli) => { var r1 = cli.Hello("3"); var r2 = cli.Hello("3", "default", "123456", "myname-client"); Assert.Equal("myname-client", cli.ClientGetName()); var r3 = cli.Hello("2"); }); }
public static RedisSentinelClient GetClient() => new RedisSentinelClient(RedisEnvironmentHelper.GetHost("redis_sentinel"));