"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
0 && (module.exports = {
    cacheScopeAsyncLocalStorage: null,
    runWithCacheScope: null
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    cacheScopeAsyncLocalStorage: function() {
        return cacheScopeAsyncLocalStorage;
    },
    runWithCacheScope: function() {
        return runWithCacheScope;
    }
});
const _asynclocalstorage = require("../../client/components/async-local-storage");
const cacheScopeAsyncLocalStorage = (0, _asynclocalstorage.createAsyncLocalStorage)();
function runWithCacheScope(store, fn) {
    return cacheScopeAsyncLocalStorage.run({
        cache: store.cache || new Map()
    }, fn);
}

//# sourceMappingURL=cache-scope.js.map