🔧 refactor(redis): replace direct constant usage with RedisKeyCacheSeconds function for cache duration

This commit is contained in:
RedwindA
2025-06-17 03:21:53 +08:00
parent a7d87475af
commit 0b9c6ecb00
3 changed files with 6 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ func updateUserCache(user User) error {
return common.RedisHSetObj(
getUserCacheKey(user.Id),
user.ToBaseUser(),
time.Duration(constant.UserId2QuotaCacheSeconds)*time.Second,
time.Duration(constant.RedisKeyCacheSeconds())*time.Second,
)
}