"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.saveCache = exports.getCache = exports.setCache = exports.resetCache = void 0;
const null_1 = require("./impl/null");
// This will be overwritten with initRepoCache()
// Used primarily as a placeholder and for testing
let repoCache = new null_1.RepoCacheNull();
function resetCache() {
    setCache(new null_1.RepoCacheNull());
}
exports.resetCache = resetCache;
function setCache(cache) {
    repoCache = cache;
}
exports.setCache = setCache;
function getCache() {
    return repoCache.getData();
}
exports.getCache = getCache;
async function saveCache() {
    await repoCache.save();
}
exports.saveCache = saveCache;
//# sourceMappingURL=index.js.map