PhpBackend::removeBin

public PhpBackend::removeBin() Remove a cache bin. Overrides CacheBackendInterface::removeBin File core/lib/Drupal/Core/Cache/PhpBackend.php, line 228 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code public function removeBin() { $this->cache = array(); $this->storage()->deleteAll(); }

PhpBackend::prepareItem

protected PhpBackend::prepareItem($cache, $allow_invalid) Prepares a cached item. Checks that items are either permanent or did not expire, and returns data as appropriate. Parameters object $cache: An item loaded from cache_get() or cache_get_multiple(). bool $allow_invalid: If FALSE, the method returns FALSE if the cache item is not valid. Return value mixed The item with data as appropriate or FALSE if there is no valid item to load. File core/lib/Drupal/Core/Cache/PhpBackend.php, line 122

PhpBackend::normalizeCid

protected PhpBackend::normalizeCid($cid) Ensures a normalized cache ID. Parameters string $cid: The passed in cache ID. Return value string A normalized cache ID. File core/lib/Drupal/Core/Cache/PhpBackend.php, line 267 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code protected function normalizeCid($cid) { return Crypt::hashBase64($cid); }

PhpBackend::invalidateMultiple

public PhpBackend::invalidateMultiple(array $cids) Marks cache items as invalid. Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE. Parameters string[] $cids: An array of cache IDs to invalidate. Overrides CacheBackendInterface::invalidateMultiple See also \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() \Drupal\Core\Cache\CacheBackendInterface::invalidate() \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() File core/lib/Drupal/Cor

PhpBackend::invalidatebyHash

protected PhpBackend::invalidatebyHash($cidhash) Invalidate one cache item. Parameters string $cidhash: The hashed version of the original cache ID after being normalized. File core/lib/Drupal/Core/Cache/PhpBackend.php, line 194 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code protected function invalidatebyHash($cidhash) { if ($item = $this->getByHash($cidhash)) { $item->expire = REQUEST_TIME - 1; $this->writeItem($cidhash, $ite

PhpBackend::invalidateAll

public PhpBackend::invalidateAll() Marks all cache items as invalid. Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE. Overrides CacheBackendInterface::invalidateAll See also \Drupal\Core\Cache\CacheBackendInterface::deleteAll() \Drupal\Core\Cache\CacheBackendInterface::invalidate() \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple() File core/lib/Drupal/Core/Cache/PhpBackend.php, line 213 Class PhpBackend Defines a PHP cache impleme

PhpBackend::invalidate

public PhpBackend::invalidate($cid) Marks a cache item as invalid. Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE. Parameters string $cid: The cache ID to invalidate. Overrides CacheBackendInterface::invalidate See also \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple() \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() File core/lib/Drupal/Core/Cache/PhpBackend.php, line 184

PhpBackend::getMultiple

public PhpBackend::getMultiple(&$cids, $allow_invalid = FALSE) Returns data from the persistent cache when given an array of cache IDs. Parameters array $cids: An array of cache IDs for the data to retrieve. This is passed by reference, and will have the IDs successfully returned from cache removed. bool $allow_invalid: (optional) If TRUE, cache items may be returned even if they have expired or been invalidated. Such items may sometimes be preferred, if the alternative is recalculating th

PhpBackend::getByHash

protected PhpBackend::getByHash($cidhash, $allow_invalid = FALSE) Fetch a cache item using a hashed cache ID. Parameters string $cidhash: The hashed version of the original cache ID after being normalized. bool $allow_invalid: (optional) If TRUE, a cache item may be returned even if it is expired or has been invalidated. Return value bool|mixed File core/lib/Drupal/Core/Cache/PhpBackend.php, line 71 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code

PhpBackend::get

public PhpBackend::get($cid, $allow_invalid = FALSE) Returns data from the persistent cache. Parameters string $cid: The cache ID of the data to retrieve. bool $allow_invalid: (optional) If TRUE, a cache item may be returned even if it is expired or has been invalidated. Such items may sometimes be preferred, if the alternative is recalculating the value stored in the cache, especially if another concurrent request is already recalculating the same value. The "valid" property of the returned o