(userId int, email string)
| 236 | } |
| 237 | |
| 238 | func updateUserEmailCache(userId int, email string) error { |
| 239 | if !common.RedisEnabled { |
| 240 | return nil |
| 241 | } |
| 242 | return common.RedisHSetField(getUserCacheKey(userId), "Email", email) |
| 243 | } |
| 244 | |
| 245 | func updateUserNameCache(userId int, username string) error { |
| 246 | if !common.RedisEnabled { |
no test coverage detected