MCPcopy
hub / github.com/vercel/next.js / unstable_cacheLife

Function unstable_cacheLife

packages/next/cache.js:54–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53let didWarnCacheLife = false
54function unstable_cacheLife() {
55 if (!didWarnCacheLife) {
56 didWarnCacheLife = true
57 const error = new Error(
58 '`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js.'
59 )
60 console.error(error)
61 }
62 return cacheExports.cacheLife.apply(this, arguments)
63}
64
65let didWarnCacheTag = false
66function unstable_cacheTag() {

Callers 5

MyComponentFunction · 0.90
unstableLife1Function · 0.90
unstableLife2Function · 0.90
MyComponentFunction · 0.85

Calls 2

errorMethod · 0.65
applyMethod · 0.45

Tested by

no test coverage detected