silverwolf-x's picture
download
raw
312 Bytes
function createCachedFn(start) {
function fn() {
return start + Math.random()
}
return async () => {
'use cache'
return fn()
}
}
function createServerAction(start) {
function fn() {
return start + Math.random()
}
return async () => {
'use server'
console.log(fn())
}
}

Xet Storage Details

Size:
312 Bytes
·
Xet hash:
47e5e02cadfcfe15792734c38131de2366d567311404a1f1c938189d6b05eae1

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