silverwolf-x/project / test /e2e /app-dir /app-static /pages /api /unstable-cache-node.js
silverwolf-x's picture
download
raw
252 Bytes
import { unstable_cache } from 'next/cache'
export default async function handler(req, res) {
const data = await unstable_cache(async () => {
return {
random: Math.random(),
}
})()
res.json({
now: Date.now(),
data,
})
}

Xet Storage Details

Size:
252 Bytes
·
Xet hash:
2df64ee652b2465989944bbdd4ae96bcbadbbbb9cc42666a4bdd4f9897dbc441

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.