CacheFactory::$defaultBinBackends

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::defaultBinBackends
  2. 8.9.x core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::defaultBinBackends
  3. 11.x core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::defaultBinBackends

A map of cache bin to default cache backend service name.

All bin-specific mappings in $settings take precedence over this, but it can be used to optimize cache storage for a Drupal installation without cache customizations in settings.php. For example, this can be used to map the 'bootstrap' bin to 'cache.backend.chainedfast', while allowing other bins to fall back to the global default of 'cache.backend.database'.

Type: array

File

core/lib/Drupal/Core/Cache/CacheFactory.php, line 31

Class

CacheFactory

Namespace

Drupal\Core\Cache

Code

protected $defaultBinBackends;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.