Upstream sync

This commit is contained in:
Senad Uka
2018-05-03 07:57:08 +02:00
committed by GotPPay
parent d392672a83
commit aa5f94370e
7 changed files with 3 additions and 11 deletions

View File

@@ -31,11 +31,10 @@ type RedisCache struct {
func Instance(cfg *config.Config) contract.CacheManager {
once.Do(func() {
client := redis.NewFailoverClient(&redis.FailoverOptions{
MasterName: cfg.Cache.Master,
MasterName: "master01",
SentinelAddrs: []string{fmt.Sprintf("%s:%v", cfg.Cache.Server, cfg.Cache.Port)},
Password: cfg.Cache.Pass,
DB: cfg.Cache.DB,
MaxRetries: 10,
})
instance = &RedisCache{cfg, client}