MCPcopy Create free account
hub / github.com/EvoMap/evolver / _assetSearchCacheKey

Method _assetSearchCacheKey

src/proxy/index.js:600–604  ·  view source on GitHub ↗
(plan)

Source from the content-addressed store, hash-verified

598
599 // Stable cache key: same path + same (order-independent) query params.
600 _assetSearchCacheKey(plan) {
601 const q = plan.query || {};
602 const stable = Object.keys(q).sort().map((k) => `${k}=${q[k]}`).join('&');
603 return `${plan.path}?${stable}`;
604 }
605
606 _cacheSearchResult(key, value, now) {
607 // Bound memory: Map preserves insertion order, so the first key is oldest.

Callers 2

_assetSearchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected