public static function Cache::getBins in Render cache 7.2
Gets all cache bin services.
Return value
array An array of cache backend objects keyed by cache bins.
2 calls to Cache::getBins()
- Cache::deleteTags in lib/
Drupal/ Core/ Cache/ Cache.php - Deletes items from all bins with any of the specified tags.
- Cache::invalidateTags in lib/
Drupal/ Core/ Cache/ Cache.php - Marks cache items from all bins with any of the specified tags as invalid.
File
- lib/
Drupal/ Core/ Cache/ Cache.php, line 142 - Contains \Drupal\Core\Cache\Cache.
Class
- Cache
- Helper methods for cache.
Namespace
Drupal\Core\CacheCode
public static function getBins() {
$bins = array();
$container = \Drupal::getContainer();
foreach ($container
->getParameter('cache_bins') as $service_id => $bin) {
$bins[$bin] = $container
->get($service_id);
}
return $bins;
}