W3cubDocs

/Drupal 8

public function CacheFactoryInterface::get

public CacheFactoryInterface::get($bin)

Gets a cache backend class for a given cache bin.

Parameters

string $bin: The cache bin for which a cache backend object should be returned.

Return value

\Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin.

File

core/lib/Drupal/Core/Cache/CacheFactoryInterface.php, line 19

Class

CacheFactoryInterface
An interface defining cache factory classes.

Namespace

Drupal\Core\Cache

Code

public function get($bin);

© 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!Cache!CacheFactoryInterface.php/function/CacheFactoryInterface::get/8.1.x