改为3天持久化

This commit is contained in:
ayflying
2025-11-24 11:20:18 +08:00
parent 26444905cf
commit eb94e50f02

View File

@@ -77,7 +77,7 @@ func (s *sGameAct) Info(uid int64, actId int) (data *g.Var, err error) {
_, err = g.Redis().Set(ctx, keyCache, data) _, err = g.Redis().Set(ctx, keyCache, data)
var CacheKey = fmt.Sprintf("act:update:%d", uid) var CacheKey = fmt.Sprintf("act:update:%d", uid)
pkg.Cache("redis").Set(ctx, CacheKey, uid, time.Hour*24*1) pkg.Cache("redis").Set(ctx, CacheKey, uid, time.Hour*24*3)
return return
} }