Added tests for Redis cluster.Fixes #2207

This commit is contained in:
Trial97
2020-08-06 12:31:46 +03:00
committed by Dan Christian Bogos
parent c1a96d21a4
commit eab8b248a4
9 changed files with 136 additions and 11 deletions

View File

@@ -69,9 +69,7 @@ const (
func NewRedisStorage(address string, db int, user, pass, mrshlerStr string,
maxConns int, sentinelName string, isCluster bool, clusterSync,
clusterOnDownDelay time.Duration) (rs *RedisStorage, err error) {
rs = new(RedisStorage)
if rs.ms, err = NewMarshaler(mrshlerStr); err != nil {
rs = nil
return