public function DatabaseStorageExpirable::getMultiple in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php \Drupal\Core\KeyValueStore\DatabaseStorageExpirable::getMultiple()
Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::getMultiple().
Overrides DatabaseStorage::getMultiple
File
- lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php, line 66 - Contains \Drupal\Core\KeyValueStore\DatabaseStorageExpirable.
Class
- DatabaseStorageExpirable
- Defines a default key/value store implementation for expiring items.
Namespace
Drupal\Core\KeyValueStoreCode
public function getMultiple(array $keys) {
$values = $this->connection
->query('SELECT name, value FROM {' . $this->connection
->escapeTable($this->table) . '} WHERE expire > :now AND name IN (:keys) AND collection = :collection', array(
':now' => REQUEST_TIME,
':keys' => $keys,
':collection' => $this->collection,
))
->fetchAllKeyed();
return array_map(array(
$this->serializer,
'decode',
), $values);
}