示例#1
0
 public static void ExecScope(string connectionString, Action <RedisClient> func)
 {
     using (var scope = new RedisClient(RedisEnvironmentHelper.GetHost(connectionString)))
     {
         func.Invoke(scope);
     }
 }
示例#2
0
 public static RedisClient CreateClient() => new RedisClient(RedisEnvironmentHelper.GetHost("redis_interceptor"));