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