MCPcopy Create free account
hub / github.com/bytebase/bytebase / removeGroupMembersCache

Method removeGroupMembersCache

backend/store/store.go:138–141  ·  view source on GitHub ↗

removeGroupMembersCache removes all possible cache entries for a group's members, covering both groups/{email} and groups/{id} lookups.

(workspace string, group *GroupMessage)

Source from the content-addressed store, hash-verified

136// removeGroupMembersCache removes all possible cache entries for a group's members,
137// covering both groups/{email} and groups/{id} lookups.
138func (s *Store) removeGroupMembersCache(workspace string, group *GroupMessage) {
139 cacheKey := getGroupMembersCacheKey(workspace, formatGroupName(group))
140 s.groupMembersCache.Remove(cacheKey)
141}
142
143func getInstanceCacheKey(instanceID string) string {
144 return instanceID

Callers 2

UpdateGroupMethod · 0.95
DeleteGroupMethod · 0.95

Calls 2

getGroupMembersCacheKeyFunction · 0.85
formatGroupNameFunction · 0.85

Tested by

no test coverage detected