From 6343c814b3e3e37a48ab62c99f4ccd0f1271a9d8 Mon Sep 17 00:00:00 2001 From: Yun Date: Sun, 27 Oct 2024 22:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E4=B8=80=E4=B8=AA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redisx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redisx.go b/redisx.go index b5e63ae..4805c01 100644 --- a/redisx.go +++ b/redisx.go @@ -14,7 +14,7 @@ import ( // IdleCheckFrequency:检查空闲连接的频率。 // 单机 -func NewRedis(opts ...Option) *redis.Client { +func NewRedis(opts ...Option) redis.UniversalClient { opt := defaultOptions() for _, apply := range opts { apply(&opt)