示例#1
0
        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");
            });
        }
示例#2
0
 public static RedisSentinelClient GetClient() => new RedisSentinelClient(RedisEnvironmentHelper.GetHost("redis_sentinel"));