(userId int, group string)
| 225 | } |
| 226 | |
| 227 | func updateUserGroupCache(userId int, group string) error { |
| 228 | if !common.RedisEnabled { |
| 229 | return nil |
| 230 | } |
| 231 | return common.RedisHSetField(getUserCacheKey(userId), "Group", group) |
| 232 | } |
| 233 | |
| 234 | func UpdateUserGroupCache(userId int, group string) error { |
| 235 | return updateUserGroupCache(userId, group) |
no test coverage detected