class RenderCache

Wraps the caching logic for the render caching system.

@internal

@todo Refactor this out into a generic service capable of cache redirects, and let RenderCache use that. https://www.drupal.org/node/2551419

Hierarchy

File

core/lib/Drupal/Core/Render/RenderCache.php, line 19

Namespace

Drupal\Core\Render

Members

Name Modifiers Type Description
RenderCache::$cacheContextsManager protected property The cache contexts manager.
RenderCache::$cacheFactory protected property The cache factory.
RenderCache::$requestStack protected property The request stack.
RenderCache::createCacheID protected function Creates the cache ID for a renderable element.
RenderCache::get public function Gets the cached, pre-rendered element of a renderable element from cache. Overrides RenderCacheInterface::get
RenderCache::getCacheableRenderArray public function Gets a cacheable render array for a render array and its rendered output. Overrides RenderCacheInterface::getCacheableRenderArray
RenderCache::maxAgeToExpire protected function Maps a #cache[max-age] value to an "expire" value for the Cache API.
RenderCache::set public function Caches the rendered output of a renderable array. Overrides RenderCacheInterface::set
RenderCache::__construct public function Constructs a new RenderCache object.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!RenderCache.php/class/RenderCache/8.1.x