MCPcopy Create free account
hub / github.com/Azure/static-web-apps-cli / cache

Function cache

e2e/samples/app/slate/source/javascripts/lib/_jquery.js:867–874  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

865 var keys = [];
866
867 function cache(key, value) {
868 // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
869 if (keys.push(key + " ") > Expr.cacheLength) {
870 // Only keep the most recent entries
871 delete cache[keys.shift()];
872 }
873 return (cache[key + " "] = value);
874 }
875 return cache;
876 }
877

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…