You are here

public function CacheDecoratorInterface::setCacheKey in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php \Drupal\Core\CacheDecorator\CacheDecoratorInterface::setCacheKey()
  2. 10 core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php \Drupal\Core\CacheDecorator\CacheDecoratorInterface::setCacheKey()

Specify the key to use when writing the cache.

File

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

Class

CacheDecoratorInterface
Defines an interface for cache decorator implementations.

Namespace

Drupal\Core\CacheDecorator

Code

public function setCacheKey($key);