invalidateUserCache clears user cache
(userId int)
| 50 | |
| 51 | // invalidateUserCache clears user cache |
| 52 | func invalidateUserCache(userId int) error { |
| 53 | if !common.RedisEnabled { |
| 54 | return nil |
| 55 | } |
| 56 | return common.RedisDelKey(getUserCacheKey(userId)) |
| 57 | } |
| 58 | |
| 59 | // updateUserCache updates all user cache fields using hash |
| 60 | func updateUserCache(user User) error { |
no test coverage detected