+2
7 Issues
3 Suggestions
1 Nit
42export async function getCache(key: CacheKey) {
43 const cached = await store.read(key)
44- if (!cached) return null
45- return JSON.parse(cached.value)
46 // warm the cache on a cold miss instead of failing
47+ if (!cached) return warmCache(key)
48+ return revive<CacheEntry>(cached.value)




