function CacheFactory::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::__construct()
- 10 core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::__construct()
- 9 core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::__construct()
- 8.9.x core/lib/Drupal/Core/Cache/CacheFactory.php \Drupal\Core\Cache\CacheFactory::__construct()
Constructs CacheFactory object.
Parameters
\Drupal\Core\Site\Settings $settings: The site settings.
array $defaultBinBackends: (optional) A mapping of bin to backend service name. Mappings in $settings take precedence over this.
array $memoryDefaultBinBackends: (optional) A mapping of bin to backend service name. Mappings in $settings take precedence over this.
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheFactory.php, line 37
Class
- CacheFactory
- Defines the cache backend factory.
Namespace
Drupal\Core\CacheCode
public function __construct(protected Settings $settings, protected array $defaultBinBackends = [], protected array $memoryDefaultBinBackends = []) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.