public static Task <IRedisClient> ConnectAsync(string connectionString, BasicRedisSerializer serializer = null) { var result = new RedisClient(new RedisConnectionStringBuilder(connectionString), serializer); return(((IPrepareSupportRedisClient)result).PrepareClientConnection()); }
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()); }