From b4f721060fd10c99b24c9527191f1259d68acb4d Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Tue, 16 Sep 2025 20:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89me?= =?UTF-8?q?morycache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker/redis.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/worker/redis.go b/worker/redis.go index ad21ff8..9a6ee9b 100644 --- a/worker/redis.go +++ b/worker/redis.go @@ -1,16 +1,14 @@ package worker import ( + "context" + "encoding/json" "fmt" + "github.com/go-redis/redis/v8" "strconv" "time" "videoplayer/proto" ) -import ( - "context" - "encoding/json" - "github.com/go-redis/redis/v8" -) var RedisClient *redis.Client // Redis 客户端, 用于连接 Redis 服务器 func InitRedis() error {