MCPcopy
hub / github.com/fosrl/pangolin / get

Method get

server/lib/cache.ts:48–57  ·  view source on GitHub ↗

* Get a value from the cache * @param key - Cache key * @returns The cached value or undefined if not found

(key: string)

Source from the content-addressed store, hash-verified

46 * @returns The cached value or undefined if not found
47 */
48 async get<T = any>(key: string): Promise<T | undefined> {
49 // Use local cache as fallback or primary
50 const value = localCache.get<T>(key);
51 if (value !== undefined) {
52 logger.debug(`Cache hit in local cache: ${key}`);
53 } else {
54 logger.debug(`Cache miss in local cache: ${key}`);
55 }
56 return value;
57 }
58
59 /**
60 * Delete a value from the cache

Callers 15

makeApiRequestFunction · 0.45
IdpLoginButtonsFunction · 0.45
UsersTableFunction · 0.45
OrgLabelsTableFunction · 0.45
groupImportableIdpsFunction · 0.45
WorldMapFunction · 0.45
getCountryByCountryPathFunction · 0.45
PrivateResourcesTableFunction · 0.45
AlertingRulesTableFunction · 0.45
PendingSitesTableFunction · 0.45
onSubmitFunction · 0.45
createLabelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected