(userId int, quota int)
| 190 | } |
| 191 | |
| 192 | func updateUserQuotaCache(userId int, quota int) error { |
| 193 | if !common.RedisEnabled { |
| 194 | return nil |
| 195 | } |
| 196 | return common.RedisHSetField(getUserCacheKey(userId), "Quota", fmt.Sprintf("%d", quota)) |
| 197 | } |
| 198 | |
| 199 | func updateUserGroupCache(userId int, group string) error { |
| 200 | if !common.RedisEnabled { |
no test coverage detected