CacheBackendInterface::getMultiple

public CacheBackendInterface::getMultiple(&$cids, $allow_invalid = FALSE) Returns data from the persistent cache when given an array of cache IDs. Parameters array $cids: An array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed. bool $allow_invalid: (optional) If TRUE, cache items may be returned even if they have expired or been invalidated. Such items may sometimes be preferred, if the alternative is recal

CacheBackendInterface::deleteMultiple

public CacheBackendInterface::deleteMultiple(array $cids) Deletes multiple items from the cache. If the cache items are being deleted because they are no longer "fresh", you may consider using invalidateMultiple() instead. This allows callers to retrieve the invalid items by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters array $cids: An array of cache IDs to delete. See also \Drupal\Core\Cache\

CacheBackendInterface::get

public CacheBackendInterface::get($cid, $allow_invalid = FALSE) Returns data from the persistent cache. Parameters string $cid: The cache ID of the data to retrieve. bool $allow_invalid: (optional) If TRUE, a cache item may be returned even if it is expired or has been invalidated. Such items may sometimes be preferred, if the alternative is recalculating the value stored in the cache, especially if another concurrent request is already recalculating the same value. The "valid" property of the

CacheBackendInterface::garbageCollection

public CacheBackendInterface::garbageCollection() Performs garbage collection on a cache bin. The backend may choose to delete expired or invalidated items. File core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 212 Class CacheBackendInterface Defines an interface for cache implementations. Namespace Drupal\Core\Cache Code public function garbageCollection();

CacheBackendInterface::deleteAll

public CacheBackendInterface::deleteAll() Deletes all cache items in a bin. See also \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() File core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 163 Class CacheBackendInterface Defines an interface for cache implementations. Namespace Drupal\Core\Cache Code public function deleteAll();

CacheBackendInterface::CACHE_PERMANENT

Indicates that the item should never be removed unless explicitly deleted. File core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 21 Class CacheBackendInterface Defines an interface for cache implementations. Namespace Drupal\Core\Cache Code const CACHE_PERMANENT = -1;

CacheBackendInterface

Defines an interface for cache implementations. All cache implementations have to implement this interface. Drupal\Core\Cache\DatabaseBackend provides the default implementation, which can be consulted as an example. The cache indentifiers are case sensitive. Hierarchy interface \Drupal\Core\Cache\CacheBackendInterface Related topics Cache API Information about the Drupal Cache API File core/lib/Drupal/Core/Cache/CacheBackendInterface.php, line 16 Namespace Drupal\Core\Cache Members

CacheBackendInterface::delete

public CacheBackendInterface::delete($cid) Deletes an item from the cache. If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters string $cid: The cache ID to delete. See also \Drupal\Core\Cache\CacheBackendInterface::invalidate() \Drupal\C

CacheableSecuredRedirectResponse

Provides a common base class for cacheable safe redirects. Hierarchy class \Symfony\Component\HttpFoundation\RedirectResponse extends \Symfony\Component\HttpFoundation\Response class \Drupal\Component\HttpFoundation\SecuredRedirectResponseclass \Drupal\Core\Routing\CacheableSecuredRedirectResponse implements CacheableResponseInterface uses CacheableResponseTrait File core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php, line 13 Namespace Drupal\Core\Routing Members Name

CacheableResponseTrait::getCacheableMetadata

public CacheableResponseTrait::getCacheableMetadata() Returns the cacheability metadata for this response. Return value \Drupal\Core\Cache\CacheableMetadata Overrides CacheableResponseInterface::getCacheableMetadata File core/lib/Drupal/Core/Cache/CacheableResponseTrait.php, line 37 Class CacheableResponseTrait Provides an implementation of CacheableResponseInterface. Namespace Drupal\Core\Cache Code public function getCacheableMetadata() { // A trait doesn't have a constructor, so