Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::getAll().
Overrides DatabaseStorage::getAll
public function getAll() {
$values = $this->connection
->query('SELECT name, value FROM {' . $this->connection
->escapeTable($this->table) . '} WHERE collection = :collection AND expire > :now', array(
':collection' => $this->collection,
':now' => REQUEST_TIME,
))
->fetchAllKeyed();
return array_map('unserialize', $values);
}