rsshub
Version:
Make RSS Great Again!
12 lines (10 loc) • 361 B
JavaScript
import { t as ofetch_default } from "./ofetch-DKl_Ma9g.mjs";
import { t as cache_default } from "./cache-SV6W5EPy.mjs";
//#region lib/routes/yystv/fetcher.ts
function fetchDataItemCached(link, processor) {
return cache_default.tryGet(link, async () => {
return processor(await ofetch_default(link));
});
}
//#endregion
export { fetchDataItemCached as t };