function LruMemoryCache::get
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Cache/MemoryCache/LruMemoryCache.php \Drupal\Core\Cache\MemoryCache\LruMemoryCache::get()
Overrides MemoryBackend::get
File
-
core/
lib/ Drupal/ Core/ Cache/ MemoryCache/ LruMemoryCache.php, line 37
Class
- LruMemoryCache
- Defines a least recently used (LRU) static cache implementation.
Namespace
Drupal\Core\Cache\MemoryCacheCode
public function get($cid, $allow_invalid = FALSE) {
if ($cached = parent::get($cid, $allow_invalid)) {
$this->handleCacheHits([
$cid => $cached,
]);
}
return $cached;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.