From cd21c9fa740f4c6ae25a64274ad94de49043c9f1 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Wed, 29 Sep 2021 22:07:05 +0800 Subject: [PATCH] chore: mark redis.NewRedis as Deprecated, use redis.New instead. (#1100) * chore: mark redis.NewRedis as Deprecated * chore: mark redis.NewRedis as Deprecated --- core/stores/redis/redis.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/stores/redis/redis.go b/core/stores/redis/redis.go index 13f4fac7..87347ce4 100644 --- a/core/stores/redis/redis.go +++ b/core/stores/redis/redis.go @@ -90,6 +90,7 @@ func New(addr string, opts ...Option) *Redis { return r } +// Deprecated: use New instead, will be removed in v2. // NewRedis returns a Redis. func NewRedis(redisAddr, redisType string, redisPass ...string) *Redis { var opts []Option