(userId int, username string)
| 204 | } |
| 205 | |
| 206 | func updateUserNameCache(userId int, username string) error { |
| 207 | if !common.RedisEnabled { |
| 208 | return nil |
| 209 | } |
| 210 | return common.RedisHSetField(getUserCacheKey(userId), "Username", username) |
| 211 | } |
| 212 | |
| 213 | func updateUserSettingCache(userId int, setting string) error { |
| 214 | if !common.RedisEnabled { |
no test coverage detected