public static function Cache::getBins

Gets all cache bin services.

Return value

array An array of cache backend objects keyed by cache bins.

5 calls to Cache::getBins()
Cache::deleteTags in drupal/core/lib/Drupal/Core/Cache/Cache.php
Deletes items from all bins with any of the specified tags.
Cache::invalidateTags in drupal/core/lib/Drupal/Core/Cache/Cache.php
Marks cache items from all bins with any of the specified tags as invalid.
ClearTest::testFlushAllCaches in drupal/core/modules/system/lib/Drupal/system/Tests/Cache/ClearTest.php
Tests drupal_flush_all_caches().
drupal_flush_all_caches in drupal/core/includes/common.inc
Flushes all persistent caches, resets all variables, and rebuilds all data structures.
system_cron in drupal/core/modules/system/system.module
Implements hook_cron().

File

drupal/core/lib/Drupal/Core/Cache/Cache.php, line 59
Contains \Drupal\Core\Cache\Cache.

Class

Cache
Helper methods for cache.

Namespace

Drupal\Core\Cache

Code

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;
}