MCPcopy Create free account
hub / github.com/53AI/53AIHub / InvalidateInternalUserListCache

Function InvalidateInternalUserListCache

api/service/user_service.go:533–544  ·  view source on GitHub ↗

InvalidateInternalUserListCache clears all cached internal user list pages for an enterprise.

(eid int64)

Source from the content-addressed store, hash-verified

531
532// InvalidateInternalUserListCache clears all cached internal user list pages for an enterprise.
533func 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}

Callers 2

BatchAddInternalUsersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected