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

Function cache

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

Source from the content-addressed store, hash-verified

904 var keys = [];
905
906 function cache( key, value ) {
907
908 // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
909 if ( keys.push( key + " " ) > Expr.cacheLength ) {
910
911 // Only keep the most recent entries
912 delete cache[ keys.shift() ];
913 }
914 return ( cache[ key + " " ] = value );
915 }
916 return cache;
917}
918

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected