MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / cache

Function cache

libs/jquery-3.5.1/jquery-2.2.4.js:881–888  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

879 var keys = [];
880
881 function cache( key, value ) {
882 // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
883 if ( keys.push( key + " " ) > Expr.cacheLength ) {
884 // Only keep the most recent entries
885 delete cache[ keys.shift() ];
886 }
887 return (cache[ key + " " ] = value);
888 }
889 return cache;
890}
891

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected