You are here

public function RenderCacheBackendAdapterInterface::set in Render cache 7.2

Sets one cache entry based on the given $cache_info structure.

Because cache_info supports different caching strategies, this function needs to be able to change the given render array.

Parameters

array &$render: The render array to set the cache for.

array $cache_info: The cache info structure.

1 method overrides RenderCacheBackendAdapterInterface::set()
RenderCacheBackendAdapter::set in src/Cache/RenderCacheBackendAdapter.php
Sets one cache entry based on the given $cache_info structure.

File

src/Cache/RenderCacheBackendAdapterInterface.php, line 69
Contains \Drupal\render_cache\Cache\RenderCacheBackendAdapterInterface

Class

RenderCacheBackendAdapterInterface
Defines an interface for the render cache backend adapter.

Namespace

Drupal\render_cache\Cache

Code

public function set(array &$render, array $cache_info);