public function ChainedStorage::getAll in Supercache 8
Same name and namespace in other branches
- 2.0.x src/KeyValueStore/ChainedStorage.php \Drupal\supercache\KeyValueStore\ChainedStorage::getAll()
Returns all stored key/value pairs in the collection.
Return value
array An associative array containing all stored items in the collection.
Overrides DatabaseStorage::getAll
File
- src/
KeyValueStore/ ChainedStorage.php, line 97 - 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 getAll() {
// We have to rely on the persistent
// storage because we cannot rely
// on the cache layer to have all
// the key/value pairs.
$result = parent::getAll();
// Do not call set multiple here to prepopulate the cache
// because it will INVALIDATE the binary on ChainedFast
// $this->cache->setMultiple($this->KeyValueToCache($result));
return $result;
}