MCPcopy
hub / github.com/directus/directus / getCacheValue

Function getCacheValue

api/src/cache.ts:161–166  ·  view source on GitHub ↗
(cache: Keyv, key: string)

Source from the content-addressed store, hash-verified

159}
160
161export async function getCacheValue(cache: Keyv, key: string): Promise<any> {
162 const value = await cache.get(key);
163 if (!value) return undefined;
164 const decompressed = await decompress(value);
165 return decompressed;
166}
167
168/**
169 * Store a value in cache with its expiration timestamp for TTL tracking

Callers 6

getSystemCacheFunction · 0.85
getCacheValueWithTTLFunction · 0.85
fetchContextDataFunction · 0.85
cache.tsFile · 0.85
foreignKeysMethod · 0.85
columnInfoMethod · 0.85

Calls 2

getMethod · 0.65
decompressFunction · 0.50

Tested by

no test coverage detected