Returns a list of cache backends for this site.
array An associative array with cache bins as keys, and backend class names as value.
public static function getBackends() {
// @todo Improve how cache backend classes are defined. Cannot be
// configuration, since e.g. the CachedStorage config storage controller
// requires the definition in its constructor already.
global $conf;
$cache_backends = isset($conf['cache_classes']) ? $conf['cache_classes'] : array();
// Ensure there is a default 'cache' bin definition.
$cache_backends += array(
'cache' => 'Drupal\\Core\\Cache\\DatabaseBackend',
);
return $cache_backends;
}