/home/techb158/balavpn.abdallabala.com/node_modules/next
NameSizeModeActions
compat/-0777rm
dist/-0777rm
experimental/-0777rm
font/-0777rm
image-types/-0777rm
legacy/-0777rm
navigation-types/-0777rm
types/-0777rm
amp.d.ts380666editdlrm
amp.js500666editdlrm
app.d.ts890666editdlrm
app.js460666editdlrm
babel.d.ts420666editdlrm
babel.js540666editdlrm
cache.d.ts55210666editdlrm
cache.js15000666editdlrm
client.d.ts360666editdlrm
client.js480666editdlrm
config.d.ts1490666editdlrm
config.js4230666editdlrm
constants.d.ts440666editdlrm
constants.js560666editdlrm
document.d.ts1090666editdlrm
document.js510666editdlrm
dynamic.d.ts1130666editdlrm
dynamic.js540666editdlrm
error.d.ts970666editdlrm
error.js480666editdlrm
form.d.ts930666editdlrm
form.js470666editdlrm
head.d.ts1010666editdlrm
head.js510666editdlrm
headers.d.ts1410666editdlrm
headers.js2290666editdlrm
image.d.ts1230666editdlrm
image.js610666editdlrm
index.d.ts7830666editdlrm
jest.d.ts1090666editdlrm
jest.js510666editdlrm
license.md10790666editdlrm
link.d.ts930666editdlrm
link.js470666editdlrm
navigation.d.ts520666editdlrm
navigation.js640666editdlrm
og.d.ts480666editdlrm
og.js600666editdlrm
package.json31750666editdlrm
README.md33410666editdlrm
root-params.d.ts1400666editdlrm
root-params.js1410666editdlrm
router.d.ts1010666editdlrm
router.js490666editdlrm
script.d.ts1010666editdlrm
script.js490666editdlrm
server.d.ts12160666editdlrm
server.js14890666editdlrm
types.d.ts680666editdlrm
types.js140666editdlrm
web-vitals.d.ts410666editdlrm
web-vitals.js530666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/cache.d.ts (5521B)
export { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache' export { revalidatePath, revalidateTag, unstable_expirePath, unstable_expireTag, } from 'next/dist/server/web/spec-extension/revalidate' export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store' export { cacheTag as unstable_cacheTag } from 'next/dist/server/use-cache/cache-tag' /** * Cache this `"use cache"` for a timespan defined by the `"default"` profile. * ``` * stale: 300 seconds (5 minutes) * revalidate: 900 seconds (15 minutes) * expire: never * ``` * * This cache may be stale on clients for 5 minutes before checking with the server. * If the server receives a new request after 15 minutes, start revalidating new values in the background. * It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request. */ export function unstable_cacheLife(profile: 'default'): void /** * Cache this `"use cache"` for a timespan defined by the `"seconds"` profile. * ``` * stale: 0 seconds * revalidate: 1 seconds * expire: 1 minute * ``` * * This cache may be stale on clients for 0 seconds before checking with the server. * If the server receives a new request after 1 second, start revalidating new values in the background. * If this entry has no traffic for 1 minute it will expire. The next request will recompute it. */ export function unstable_cacheLife(profile: 'seconds'): void /** * Cache this `"use cache"` for a timespan defined by the `"minutes"` profile. * ``` * stale: 300 seconds (5 minutes) * revalidate: 60 seconds (1 minute) * expire: 3600 seconds (1 hour) * ``` * * This cache may be stale on clients for 5 minutes before checking with the server. * If the server receives a new request after 1 minute, start revalidating new values in the background. * If this entry has no traffic for 1 hour it will expire. The next request will recompute it. */ export function unstable_cacheLife(profile: 'minutes'): void /** * Cache this `"use cache"` for a timespan defined by the `"hours"` profile. * ``` * stale: 300 seconds (5 minutes) * revalidate: 3600 seconds (1 hour) * expire: 86400 seconds (1 day) * ``` * * This cache may be stale on clients for 5 minutes before checking with the server. * If the server receives a new request after 1 hour, start revalidating new values in the background. * If this entry has no traffic for 1 day it will expire. The next request will recompute it. */ export function unstable_cacheLife(profile: 'hours'): void /** * Cache this `"use cache"` for a timespan defined by the `"days"` profile. * ``` * stale: 300 seconds (5 minutes) * revalidate: 86400 seconds (1 day) * expire: 604800 seconds (1 week) * ``` * * This cache may be stale on clients for 5 minutes before checking with the server. * If the server receives a new request after 1 day, start revalidating new values in the background. * If this entry has no traffic for 1 week it will expire. The next request will recompute it. */ export function unstable_cacheLife(profile: 'days'): void /** * Cache this `"use cache"` for a timespan defined by the `"weeks"` profile. * ``` * stale: 300 seconds (5 minutes) * revalidate: 604800 seconds (1 week) * expire: 2592000 seconds (30 days) * ``` * * This cache may be stale on clients for 5 minutes before checking with the server. * If the server receives a new request after 1 week, start revalidating new values in the background. * If this entry has no traffic for 30 days it will expire. The next request will recompute it. */ export function unstable_cacheLife(profile: 'weeks'): void /** * Cache this `"use cache"` for a timespan defined by the `"max"` profile. * ``` * stale: 300 seconds (5 minutes) * revalidate: 2592000 seconds (30 days) * expire: never * ``` * * This cache may be stale on clients for 5 minutes before checking with the server. * If the server receives a new request after 30 days, start revalidating new values in the background. * It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request. */ export function unstable_cacheLife(profile: 'max'): void /** * Cache this `"use cache"` using a custom profile "...". * ``` * stale: ... // seconds * revalidate: ... // seconds * expire: ... // seconds * ``` * * You can define custom profiles in `next.config.ts`. */ export function unstable_cacheLife(profile: string): void /** * Cache this `"use cache"` using a custom timespan. * ``` * stale: ... // seconds * revalidate: ... // seconds * expire: ... // seconds * ``` * * This is similar to Cache-Control: max-age=`stale`,s-max-age=`revalidate`,stale-while-revalidate=`expire-revalidate` * * If a value is left out, the lowest of other cacheLife() calls or the default, is used instead. */ export function unstable_cacheLife(profile: { /** * This cache may be stale on clients for ... seconds before checking with the server. */ stale?: number /** * If the server receives a new request after ... seconds, start revalidating new values in the background. */ revalidate?: number /** * If this entry has no traffic for ... seconds it will expire. The next request will recompute it. */ expire?: number }): void