MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / addMCPCache

Method addMCPCache

packages/server/src/CachePool.ts:123–128  ·  view source on GitHub ↗

* Add to the mcp toolkit cache pool * @param {string} cacheKey * @param {any} value

(cacheKey: string, value: any)

Source from the content-addressed store, hash-verified

121 * @param {any} value
122 */
123 async addMCPCache(cacheKey: string, value: any) {
124 // Only add to cache for non-queue mode, because we are storing the toolkit instances in memory, and we can't store them in redis
125 if (process.env.MODE !== MODE.QUEUE) {
126 this.activeMCPCache[`mcpCache:${cacheKey}`] = value
127 }
128 }
129
130 /**
131 * Get item from mcp toolkit cache pool

Callers 3

getToolsMethod · 0.80
getToolsMethod · 0.80
getToolsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected