🎨 update

This commit is contained in:
2024-11-27 21:13:46 +08:00
parent 0b22d9800c
commit 44de572f1b
10 changed files with 714 additions and 30 deletions

View File

@@ -2,6 +2,7 @@ package core
import (
"github.com/redis/go-redis/v9"
"schisandra-cloud-album/global"
)
@@ -15,6 +16,7 @@ func InitRedis() {
PoolSize: global.CONFIG.Redis.PoolSize,
MinIdleConns: global.CONFIG.Redis.MinIdle,
PoolTimeout: global.CONFIG.Redis.PoolTimeout,
ReadTimeout: -1,
})
InitSession(rdb)
global.REDIS = rdb