Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php \Drupal\Core\CacheDecorator\CacheDecoratorInterface
  2. 9 core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php \Drupal\Core\CacheDecorator\CacheDecoratorInterface

Defines an interface for cache decorator implementations.

Hierarchy

Expanded class hierarchy of CacheDecoratorInterface

All classes that implement CacheDecoratorInterface

Deprecated

in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.

See also

https://www.drupal.org/node/3398182

File

core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php, line 15

Namespace

Drupal\Core\CacheDecorator
View source
interface CacheDecoratorInterface {

  /**
   * Specify the key to use when writing the cache.
   */
  public function setCacheKey($key);

  /**
   * Write the cache.
   */
  public function writeCache();

}

Members

Namesort descending Modifiers Type Description Overrides
CacheDecoratorInterface::setCacheKey public function Specify the key to use when writing the cache.
CacheDecoratorInterface::writeCache public function Write the cache.