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.
doc_Drupal
2016-10-29 09:37:26
Comments
Leave a Comment

Please login to continue.