Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ChainedFastBackend.php

function ChainedFastBackend::set

Overrides CacheBackendInterface::set

File

core/lib/Drupal/Core/Cache/ChainedFastBackend.php, line 181

Class

ChainedFastBackend
Defines a backend with a fast and a consistent backend chain.

Namespace

Drupal\Core\Cache

Code

public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = []) {
    $this->consistentBackend
        ->set($cid, $data, $expire, $tags);
    $this->markAsOutdated();
    $this->fastBackend
        ->set($cid, $data, $expire, $tags);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal