You are here

public function ChainedStorage::set in Supercache 8

Same name and namespace in other branches
  1. 2.0.x src/KeyValueStore/ChainedStorage.php \Drupal\supercache\KeyValueStore\ChainedStorage::set()

Saves a value for a given key.

Parameters

string $key: The key of the data to store.

mixed $value: The data to store.

Overrides DatabaseStorage::set

File

src/KeyValueStore/ChainedStorage.php, line 112
Contains \Drupal\supercache\KeyValueStore\ChainedStorage;

Class

ChainedStorage
Defines a chained key value storage that uses any cache backend on top of the database default key/value storage.

Namespace

Drupal\supercache\KeyValueStore

Code

public function set($key, $value) {
  $this->cache
    ->set($key, $value);
  parent::set($key, $value);
}