3 namespace Drupal\Core\KeyValueStore;
6 * Defines a null key/value store implementation.
8 class NullStorageExpirable implements KeyValueStoreExpirableInterface {
11 * The actual storage of key-value pairs.
18 * The name of the collection holding key and value pairs.
22 protected $collection;
25 * Creates a new expirable null key/value store.
27 public function __construct($collection) {
28 $this->collection = $collection;
34 public function has($key) {
41 public function get($key, $default = NULL) {
48 public function getMultiple(array $keys) {
55 public function getAll() {
62 public function set($key, $value) {}
67 public function setIfNotExists($key, $value) {}
72 public function setMultiple(array $data) {}
77 public function rename($key, $new_key) {
83 public function delete($key) {}
88 public function deleteMultiple(array $keys) {}
93 public function deleteAll() {}
98 public function getCollectionName() {
99 return $this->collection;
105 public function setMultipleWithExpire(array $data, $expire) {}
110 public function setWithExpire($key, $value, $expire) {}
115 public function setWithExpireIfNotExists($key, $value, $expire) {}