Beispiel #1
0
        public static RedisHelper UseRedis(string server, int port, string password, int db, string prefixKey)
        {
            var configuration = new RedisConfiguration(server, port, password, db, prefixKey);

            return(RedisHelper(configuration));
        }
Beispiel #2
0
        public static RedisHelper UseRedis(string serverAddr, int db, string prefixKey)
        {
            var configuration = new RedisConfiguration(serverAddr, db, prefixKey);

            return(RedisHelper(configuration));
        }
Beispiel #3
0
 private static RedisHelper RedisHelper(RedisConfiguration configuration)
 {
     return(new Lazy <RedisHelper>(() => new RedisHelper(configuration, new RedisConnection())).Value);
 }
Beispiel #4
0
 public RedisHelper(RedisConfiguration configuration, IRedisConnection connection)
     : this(configuration, connection, true)
 {
 }