MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / invalidateAdminStatusCache

Function invalidateAdminStatusCache

server/src/addie/mcp/admin-tools.ts:186–192  ·  view source on GitHub ↗
(slackUserId?: string)

Source from the content-addressed store, hash-verified

184 * Invalidate admin status cache for a Slack user (call when admin membership changes)
185 */
186export function invalidateAdminStatusCache(slackUserId?: string): void {
187 if (slackUserId) {
188 adminStatusCache.delete(slackUserId);
189 } else {
190 adminStatusCache.clear();
191 }
192}
193
194// Cache for web user admin status (keyed by WorkOS user ID)
195const webAdminStatusCache = new Map<string, { isAdmin: boolean; expiresAt: number }>();

Callers 2

tryAutoMapByEmailFunction · 0.85

Calls 2

deleteMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected