MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / addCachedKey

Function addCachedKey

utils/cache.js:99–107  ·  view source on GitHub ↗
(modelKey, cachedKey)

Source from the content-addressed store, hash-verified

97 }
98 return keyStore.get(modelKey);
99 };
100
101 /**
102 * Adds a value(cachedKey) for the given key(modelKey)
103 * @param {string} modelKey key for the map
104 * @param {string} cachedKey value for the given key
105 *
106 */
107 const addCachedKey = (modelKey, cachedKey) => {
108 if (keyStore.has(modelKey)) {
109 keyStore.get(modelKey).add(cachedKey);
110 } else {

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected