feat: update cache

This commit is contained in:
CaIon
2024-04-18 20:30:17 +08:00
parent 4ef98ba7eb
commit e6765ef32d
2 changed files with 3 additions and 6 deletions

View File

@@ -412,7 +412,7 @@ func GetUserQuota(id int) (quota int, err error) {
err = DB.Model(&User{}).Where("id = ?", id).Select("quota").Find(&quota).Error
if err != nil {
if common.RedisEnabled {
go CacheSetUserQuota(id, quota)
go cacheSetUserQuota(id, quota)
}
}
return quota, err