* Add to the mcp toolkit cache pool * @param {string} cacheKey * @param {any} value
(cacheKey: string, value: any)
| 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 |