You are here

public function RenderCacheBackendAdapter::cache in Render cache 7.2

Retrieves the Drupal 7 cache object for the given bin.

Parameters

string $bin: The cache bin to retrieve a cache object for.

Return value

\DrupalCacheInterface The Drupal 7 cache object.

Overrides RenderCacheBackendAdapterInterface::cache

File

src/Cache/RenderCacheBackendAdapter.php, line 42
Contains \Drupal\render_cache\Cache\RenderCacheBackendAdapter

Class

RenderCacheBackendAdapter
Defines the render_cache.cache service.

Namespace

Drupal\render_cache\Cache

Code

public function cache($bin = 'cache') {

  // This is an internal API, but we need the cache object.
  return _cache_get_object($bin);
}