chore: mark redis.NewRedis as Deprecated, use redis.New instead. (#1100)

* chore: mark redis.NewRedis as Deprecated

* chore: mark redis.NewRedis as Deprecated
master
Kevin Wan 3 years ago committed by GitHub
parent cdd2fcbbc9
commit cd21c9fa74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save