调整日志和封装优先级代码

This commit is contained in:
Yun
2025-07-24 17:13:17 +08:00
parent ecaac58926
commit 037d8cf107
8 changed files with 256 additions and 8 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ import (
uuid "github.com/satori/go.uuid"
"github.com/yuninks/cachex"
"github.com/yuninks/lockx"
"github.com/yuninks/timerx/logger"
)
// 功能描述
@@ -34,7 +35,7 @@ type Cluster struct {
redis redis.UniversalClient
cache *cachex.Cache
timeout time.Duration
logger Logger
logger logger.Logger
keyPrefix string // key前缀
location *time.Location // 根据时区计算的时间