Beispiel #1
0
        public static Task <IRedisClient> ConnectAsync(string connectionString, BasicRedisSerializer serializer = null)
        {
            var result = new RedisClient(new RedisConnectionStringBuilder(connectionString), serializer);

            return(((IPrepareSupportRedisClient)result).PrepareClientConnection());
        }
Beispiel #2
0
        public static Task <IRedisClient> ConnectAsync(string host, int port, int dbIndex = 0, BasicRedisSerializer serializer = null)
        {
            var result = new RedisClient(new RedisConnectionStringBuilder(host, port, dbIndex), serializer);

            return(((IPrepareSupportRedisClient)result).PrepareClientConnection());
        }