This commit is contained in:
Steven Hall
2024-04-04 16:22:59 +02:00
parent 84e01f255e
commit e1fdce020f
+1
View File
@@ -126,6 +126,7 @@ export function cache<Args extends any[], Result>(
// Try the memory backend, independently of the other backends as it doesn't have a network cost
const memoryEntry = await memoryCache.get(key);
if (memoryEntry) {
console.log(`${key} memcache ${Date.now()} setAt=${memoryEntry.meta.setAt} expiresAt=${memoryEntry.meta.expiresAt} revalidatesAt=${memoryEntry.meta.revalidatesAt}`)
span.setAttribute('memory', true);
result = [memoryEntry, 'memory'] as const;
} else {