UNPKG

@chainlink/mcp-server

Version:
23 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setCachedCreWorkflowContent = exports.getCachedCreWorkflowContent = exports.setCachedCreWorkflowsIndex = exports.getCachedCreWorkflowsIndex = exports.clearCreCaches = void 0; let creWorkflowsIndexCache = null; const creWorkflowContentCache = new Map(); const clearCreCaches = () => { creWorkflowsIndexCache = null; creWorkflowContentCache.clear(); }; exports.clearCreCaches = clearCreCaches; const getCachedCreWorkflowsIndex = () => creWorkflowsIndexCache; exports.getCachedCreWorkflowsIndex = getCachedCreWorkflowsIndex; const setCachedCreWorkflowsIndex = (value) => { creWorkflowsIndexCache = value; }; exports.setCachedCreWorkflowsIndex = setCachedCreWorkflowsIndex; const getCachedCreWorkflowContent = (relativePath) => creWorkflowContentCache.get(relativePath); exports.getCachedCreWorkflowContent = getCachedCreWorkflowContent; const setCachedCreWorkflowContent = (relativePath, value) => { creWorkflowContentCache.set(relativePath, value); }; exports.setCachedCreWorkflowContent = setCachedCreWorkflowContent; //# sourceMappingURL=cache.js.map