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

Function getMemberGroupsCacheKey

backend/store/store.go:168–170  ·  view source on GitHub ↗
(workspace, userName string)

Source from the content-addressed store, hash-verified

166}
167
168func getMemberGroupsCacheKey(workspace, userName string) string {
169 return fmt.Sprintf("workspaces/%s/memberGroups/%s", workspace, userName)
170}
171
172func getPolicyCacheKey(workspace string, resourceType storepb.Policy_Resource, resource string, policyType storepb.Policy_Type) string {
173 return fmt.Sprintf("workspaces/%s/policies/%s/%s/%s", workspace, resourceType.String(), resource, policyType.String())

Callers 1

GetUserGroupsSnapshotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected