예제 #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"));