This commit is contained in:
2026-03-18 17:37:24 +01:00
parent f6db3ab866
commit eec0df83cd
79 changed files with 2333 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
import { readFileSync } from "fs";
import grabDirNames from "../../utils/grab-dir-names";
import grabCacheNames from "./grab-cache-names";
import path from "path";
export default function getCache({ key, paradigm }) {
try {
const { BUNEXT_CACHE_DIR } = grabDirNames();
const { cache_name } = grabCacheNames({ key, paradigm });
const content = readFileSync(path.join(BUNEXT_CACHE_DIR, cache_name), "utf-8");
return content;
}
catch (error) {
return undefined;
}
}