InvalidateInternalUserListCache clears all cached internal user list pages for an enterprise.
(eid int64)
| 531 | |
| 532 | // InvalidateInternalUserListCache clears all cached internal user list pages for an enterprise. |
| 533 | func InvalidateInternalUserListCache(eid int64) { |
| 534 | if eid <= 0 { |
| 535 | return |
| 536 | } |
| 537 | if !common.IsRedisEnabled() { |
| 538 | return |
| 539 | } |
| 540 | |
| 541 | if _, err := common.RedisDelByPattern(common.GetInternalUserListCachePattern(eid)); err != nil && !errors.Is(err, common.ErrRedisNotEnabled) { |
| 542 | logger.SysWarnf("【用户】清理内部用户列表缓存失败: eid=%d, err=%v", eid, err) |
| 543 | } |
| 544 | } |
no outgoing calls
no test coverage detected