MCPcopy Create free account
hub / github.com/TruthHun/BookStack / cache

Function cache

static/jquery/1.12.4/jquery.js:915–922  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

913 var keys = [];
914
915 function cache( key, value ) {
916 // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
917 if ( keys.push( key + " " ) > Expr.cacheLength ) {
918 // Only keep the most recent entries
919 delete cache[ keys.shift() ];
920 }
921 return (cache[ key + " " ] = value);
922 }
923 return cache;
924}
925

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected