Function
checkAPIEnablementCache
(projectId: string, apiName: string)
Source from the content-addressed store, hash-verified
| 221 | |
| 222 | const API_ENABLEMENT_CACHE_KEY = "apiEnablementCache"; |
| 223 | function 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 | |
| 231 | function cacheEnabledAPI(projectId: string, apiName: string) { |
| 232 | const cache = (configstore.get(API_ENABLEMENT_CACHE_KEY) || {}) as Record< |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…