UNPKG

@chainlink/mcp-server

Version:
23 lines 977 B
"use strict"; 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