silverwolf-x's picture
download
raw
392 Bytes
import cloudinary from "./cloudinary";
let cachedResults;
export default async function getResults() {
if (!cachedResults) {
const fetchedResults = await cloudinary.v2.search
.expression(`folder:${process.env.CLOUDINARY_FOLDER}/*`)
.sort_by("public_id", "desc")
.max_results(400)
.execute();
cachedResults = fetchedResults;
}
return cachedResults;
}

Xet Storage Details

Size:
392 Bytes
·
Xet hash:
fdf1828f4f09b22887976a546f5d5ebe013c19c4cf99837dc8cfd4950ff8ddae

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