namespace Drupal\Core\Cache

Same name in other branches
  1. 11.x Drupal\Core\Cache
  2. 9 Drupal\Core\Cache
  3. 8.9.x Drupal\Core\Cache
Object name File name Summary
ApcuBackend core/lib/Drupal/Core/Cache/ApcuBackend.php Stores cache items in the Alternative PHP Cache User Cache (APCu).
ApcuBackendFactory core/lib/Drupal/Core/Cache/ApcuBackendFactory.php
BackendChain core/lib/Drupal/Core/Cache/BackendChain.php Defines a chained cache implementation for combining multiple cache backends.
Cache core/lib/Drupal/Core/Cache/Cache.php Helper methods for cache.
CacheableAjaxResponse core/lib/Drupal/Core/Cache/CacheableAjaxResponse.php A AjaxResponse that contains and can expose cacheability metadata.
CacheableDependencyInterface core/lib/Drupal/Core/Cache/CacheableDependencyInterface.php Defines an interface for objects which may be used by other cached objects.
CacheableDependencyTrait core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php Trait for \Drupal\Core\Cache\CacheableDependencyInterface.
CacheableJsonResponse core/lib/Drupal/Core/Cache/CacheableJsonResponse.php A JsonResponse that contains and can expose cacheability metadata.
CacheableMetadata core/lib/Drupal/Core/Cache/CacheableMetadata.php Defines a generic class for passing cacheability metadata.
CacheableRedirectResponse core/lib/Drupal/Core/Cache/CacheableRedirectResponse.php A RedirectResponse that contains and can expose cacheability metadata.
CacheableResponse core/lib/Drupal/Core/Cache/CacheableResponse.php A response that contains and can expose cacheability metadata.
CacheableResponseInterface core/lib/Drupal/Core/Cache/CacheableResponseInterface.php Defines an interface for responses that can expose cacheability metadata.
CacheableResponseTrait core/lib/Drupal/Core/Cache/CacheableResponseTrait.php Provides an implementation of CacheableResponseInterface.
CacheBackendInterface core/lib/Drupal/Core/Cache/CacheBackendInterface.php Defines an interface for cache implementations.
CacheCollector core/lib/Drupal/Core/Cache/CacheCollector.php Default implementation for CacheCollectorInterface.
CacheCollectorInterface core/lib/Drupal/Core/Cache/CacheCollectorInterface.php Provides a caching wrapper to be used in place of large structures.
CacheFactory core/lib/Drupal/Core/Cache/CacheFactory.php
CacheFactoryInterface core/lib/Drupal/Core/Cache/CacheFactoryInterface.php An interface defining cache factory classes.
CacheRedirect core/lib/Drupal/Core/Cache/CacheRedirect.php Defines a value object to represent a cache redirect.
CacheTagsChecksumInterface core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php Provides checksums for cache tag invalidations.
CacheTagsChecksumTrait core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php A trait for cache tag checksum implementations.
CacheTagsInvalidator core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php Passes cache tag events to classes that wish to respond to them.
CacheTagsInvalidatorInterface core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php Defines required methods for classes wanting to handle cache tag changes.
ChainedFastBackend core/lib/Drupal/Core/Cache/ChainedFastBackend.php Defines a backend with a fast and a consistent backend chain.
ChainedFastBackendFactory core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php Defines the chained fast cache backend factory.
DatabaseBackend core/lib/Drupal/Core/Cache/DatabaseBackend.php Defines a default cache implementation.
DatabaseBackendFactory core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php
DatabaseCacheTagsChecksum core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php Cache tags invalidations checksum implementation that uses the database.
ListCacheBinsPass core/lib/Drupal/Core/Cache/ListCacheBinsPass.php Adds cache_bins parameter to the container.
MemoryBackend core/lib/Drupal/Core/Cache/MemoryBackend.php Defines a memory cache implementation.
MemoryBackendFactory core/lib/Drupal/Core/Cache/MemoryBackendFactory.php
MemoryCounterBackend core/lib/Drupal/Core/Cache/MemoryCounterBackend.php Defines a memory cache implementation that counts set and get calls.
MemoryCounterBackendFactory core/lib/Drupal/Core/Cache/MemoryCounterBackendFactory.php
NullBackend core/lib/Drupal/Core/Cache/NullBackend.php Defines a stub cache implementation.
NullBackendFactory core/lib/Drupal/Core/Cache/NullBackendFactory.php
PhpBackend core/lib/Drupal/Core/Cache/PhpBackend.php Defines a PHP cache implementation.
PhpBackendFactory core/lib/Drupal/Core/Cache/PhpBackendFactory.php
RefinableCacheableDependencyInterface core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php Allows to add cacheability metadata to an object for the current runtime.
RefinableCacheableDependencyTrait core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface.
UncacheableDependencyTrait core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php Trait to implement CacheableDependencyInterface for uncacheable objects.
UnchangingCacheableDependencyTrait core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php Trait to implement CacheableDependencyInterface for unchanging objects.
UseCacheBackendTrait core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php Provides methods to use a cache backend while respecting a 'use caches' flag.
VariationCache core/lib/Drupal/Core/Cache/VariationCache.php Wraps a regular cache backend to make it support cache contexts.
VariationCacheFactory core/lib/Drupal/Core/Cache/VariationCacheFactory.php Defines the variation cache factory.
VariationCacheFactoryInterface core/lib/Drupal/Core/Cache/VariationCacheFactoryInterface.php An interface defining variation cache factory classes.
VariationCacheInterface core/lib/Drupal/Core/Cache/VariationCacheInterface.php Defines an interface for variation cache implementations.

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