(userId int, group string)
| 197 | } |
| 198 | |
| 199 | func updateUserGroupCache(userId int, group string) error { |
| 200 | if !common.RedisEnabled { |
| 201 | return nil |
| 202 | } |
| 203 | return common.RedisHSetField(getUserCacheKey(userId), "Group", group) |
| 204 | } |
| 205 | |
| 206 | func updateUserNameCache(userId int, username string) error { |
| 207 | if !common.RedisEnabled { |
no test coverage detected