@chainlink/mcp-server
Version:
Prototype MCP Server for CLL
23 lines • 977 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setCachedFeedsData = exports.getCachedFeedsData = exports.setCachedFeedsIndex = exports.getCachedFeedsIndex = exports.clearDataFeedsCaches = void 0;
let dataFeedsCache = new Map();
let dataFeedsIndexCache = null;
const clearDataFeedsCaches = () => {
dataFeedsCache.clear();
dataFeedsIndexCache = null;
};
exports.clearDataFeedsCaches = clearDataFeedsCaches;
const getCachedFeedsIndex = () => dataFeedsIndexCache;
exports.getCachedFeedsIndex = getCachedFeedsIndex;
const setCachedFeedsIndex = (value) => {
dataFeedsIndexCache = value;
};
exports.setCachedFeedsIndex = setCachedFeedsIndex;
const getCachedFeedsData = (chainId) => dataFeedsCache.get(chainId);
exports.getCachedFeedsData = getCachedFeedsData;
const setCachedFeedsData = (chainId, value) => {
dataFeedsCache.set(chainId, value);
};
exports.setCachedFeedsData = setCachedFeedsData;
//# sourceMappingURL=cache.js.map