Redis库升级到V9

This commit is contained in:
Yun
2025-10-04 22:00:08 +08:00
parent 793a8da1af
commit 7ab9ac48c2
10 changed files with 27 additions and 43 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import (
"os"
"time"
"github.com/go-redis/redis/v8"
"github.com/redis/go-redis/v9"
"github.com/yuninks/timerx"
"github.com/yuninks/timerx/priority"
)
@@ -252,7 +252,7 @@ func d() {
return
}
client.ZAdd(context.Background(), "lockx:test2", &redis.Z{
client.ZAdd(context.Background(), "lockx:test2", redis.Z{
Score: 50,
Member: "test",
})