public function ChainedStorage::rename in Supercache 8
Same name and namespace in other branches
- 2.0.x src/KeyValueStore/ChainedStorage.php \Drupal\supercache\KeyValueStore\ChainedStorage::rename()
Renames a key.
Parameters
string $key: The key to rename.
string $new_key: The new key name.
Overrides DatabaseStorage::rename
File
- src/
KeyValueStore/ ChainedStorage.php, line 131 - 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\KeyValueStoreCode
public function rename($key, $new_key) {
parent::rename($key, $new_key);
$this->cache
->delete($key);
}