CacheDecoratorInterface.php

Same filename and directory in other branches
  1. 8.9.x core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php
  2. 10 core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php
  3. 11.x core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php

Namespace

Drupal\Core\CacheDecorator

File

core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php

View source
<?php

namespace Drupal\Core\CacheDecorator;


/**
 * Defines an interface for cache decorator implementations.
 */
interface CacheDecoratorInterface {
    
    /**
     * Specify the key to use when writing the cache.
     */
    public function setCacheKey($key);
    
    /**
     * Write the cache.
     */
    public function writeCache();

}

Interfaces

Title Deprecated Summary
CacheDecoratorInterface Defines an interface for cache decorator implementations.

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