(userId int, username string)
| 243 | } |
| 244 | |
| 245 | func updateUserNameCache(userId int, username string) error { |
| 246 | if !common.RedisEnabled { |
| 247 | return nil |
| 248 | } |
| 249 | return common.RedisHSetField(getUserCacheKey(userId), "Username", username) |
| 250 | } |
| 251 | |
| 252 | func updateUserSettingCache(userId int, setting string) error { |
| 253 | if !common.RedisEnabled { |
no test coverage detected