function CacheFactoryInterface::get
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheFactoryInterface.php \Drupal\Core\Cache\CacheFactoryInterface::get()
- 8.9.x core/lib/Drupal/Core/Cache/CacheFactoryInterface.php \Drupal\Core\Cache\CacheFactoryInterface::get()
- 11.x core/lib/Drupal/Core/Cache/CacheFactoryInterface.php \Drupal\Core\Cache\CacheFactoryInterface::get()
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\CacheCode
public function get($bin);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.