MCPcopy Create free account
hub / github.com/firebase/firebase-tools / checkAPIEnablementCache

Function checkAPIEnablementCache

src/ensureApiEnabled.ts:223–229  ·  view source on GitHub ↗
(projectId: string, apiName: string)

Source from the content-addressed store, hash-verified

221
222const API_ENABLEMENT_CACHE_KEY = "apiEnablementCache";
223function checkAPIEnablementCache(projectId: string, apiName: string): boolean {
224 const cache = configstore.get(API_ENABLEMENT_CACHE_KEY) as Record<
225 string,
226 Record<string, boolean>
227 >;
228 return !!cache?.[projectId]?.[apiName];
229}
230
231function cacheEnabledAPI(projectId: string, apiName: string) {
232 const cache = (configstore.get(API_ENABLEMENT_CACHE_KEY) || {}) as Record<

Callers 1

checkFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…