PhpBackend::garbageCollection

public PhpBackend::garbageCollection() Performs garbage collection on a cache bin. The backend may choose to delete expired or invalidated items. Overrides CacheBackendInterface::garbageCollection File core/lib/Drupal/Core/Cache/PhpBackend.php, line 222 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code public function garbageCollection() { }

PhpBackend::deleteMultiple

public PhpBackend::deleteMultiple(array $cids) Deletes multiple items from the cache. If the cache items are being deleted because they are no longer "fresh", you may consider using invalidateMultiple() instead. This allows callers to retrieve the invalid items by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters array $cids: An array of cache IDs to delete. Overrides CacheBackendInterface::deleteM

PhpBackend::deleteAll

public PhpBackend::deleteAll() Deletes all cache items in a bin. Overrides CacheBackendInterface::deleteAll See also \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple() File core/lib/Drupal/Core/Cache/PhpBackend.php, line 177 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code public function deleteAll() { $this->storage()->delet

PhpBackend::delete

public PhpBackend::delete($cid) Deletes an item from the cache. If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters string $cid: The cache ID to delete. Overrides CacheBackendInterface::delete See also \Drupal\Core\Cache\CacheBackendInte

PhpBackend::$checksumProvider

The cache tags checksum provider. Type: \Drupal\Core\Cache\CacheTagsChecksumInterface File core/lib/Drupal/Core/Cache/PhpBackend.php, line 38 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code protected $checksumProvider;

PhpBackend::$cache

Array to store cache objects. File core/lib/Drupal/Core/Cache/PhpBackend.php, line 31 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code protected $cache = array();

PhpBackend::$bin

Type: string File core/lib/Drupal/Core/Cache/PhpBackend.php, line 26 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code protected $bin;

PhpBackend

Defines a PHP cache implementation. Stores cache items in a PHP file using a storage that implements Drupal\Component\PhpStorage\PhpStorageInterface. This is fast because of PHP's opcode caching mechanism. Once a file's content is stored in PHP's opcode cache, including it doesn't require reading the contents from a filesystem. Instead, PHP will use the already compiled opcodes stored in memory. Hierarchy class \Drupal\Core\Cache\PhpBackend implements CacheBackendInterface Related topics Cac

PhpassHashedPassword::__construct

PhpassHashedPassword::__construct($countLog2) Constructs a new password hashing instance. Parameters int $countLog2: Password stretching iteration count. Specifies the number of times the hashing function will be applied when generating new password hashes. The number of times is calculated by raising 2 to the power of the given value. File core/lib/Drupal/Core/Password/PhpassHashedPassword.php, line 50 Class PhpassHashedPassword Secure password hashing functions based on the Portable PHP

PhpassHashedPassword::needsRehash

public PhpassHashedPassword::needsRehash($hash) Check whether a hashed password needs to be replaced with a new hash. This is typically called during the login process when the plain text password is available. A new hash is needed when the desired iteration count has changed by a modification of the password-service in the dependency injection container or if the user's password hash was generated in an update like user_update_7000() (see the Drupal 7 documentation). Parameters string $hash: