You are here

service cache.backend.database in Drupal 9

Same name and namespace in other branches
  1. 8 core/core.services.yml \cache.backend.database

Class

Drupal\Core\Cache\DatabaseBackendFactory

Tags

  • backend_overridable
5 string references to cache.backend.database
CacheFactory::get in core/lib/Drupal/Core/Cache/CacheFactory.php
Instantiates a cache backend class for a given cache bin.
CacheFactoryTest::testCacheFactoryWithDefaultSettings in core/tests/Drupal/Tests/Core/Cache/CacheFactoryTest.php
Tests that the cache factory falls back to the built-in default service.
ChainedFastBackendFactory::__construct in core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php
Constructs ChainedFastBackendFactory object.
DatabaseBackendTest::testCacheBackendDatabaseIsBackendOverridable in core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTest.php
Test that the service "cache.backend.database" is backend overridable.
DrupalKernelSiteTest::testServicesYml in core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelSiteTest.php
Tests services.yml in site directory.

File

core/core.services.yml
core/core.services.yml

View source
  1. class: Drupal\Core\Cache\DatabaseBackendFactory
  2. arguments:
  3. - '@database'
  4. - '@cache_tags.invalidator.checksum'
  5. - '@settings'
  6. tags:
  7. - { name: backend_overridable }