NullStorageExpirable.php in Drupal 8
File
core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php
View source
<?php
namespace Drupal\Core\KeyValueStore;
class NullStorageExpirable implements KeyValueStoreExpirableInterface {
protected $data = [];
protected $collection;
public function __construct($collection) {
$this->collection = $collection;
}
public function has($key) {
return FALSE;
}
public function get($key, $default = NULL) {
return NULL;
}
public function getMultiple(array $keys) {
return [];
}
public function getAll() {
return [];
}
public function set($key, $value) {
}
public function setIfNotExists($key, $value) {
}
public function setMultiple(array $data) {
}
public function rename($key, $new_key) {
}
public function delete($key) {
}
public function deleteMultiple(array $keys) {
}
public function deleteAll() {
}
public function getCollectionName() {
return $this->collection;
}
public function setMultipleWithExpire(array $data, $expire) {
}
public function setWithExpire($key, $value, $expire) {
}
public function setWithExpireIfNotExists($key, $value, $expire) {
}
}