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