DatabaseBackend::garbageCollection

public DatabaseBackend::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/DatabaseBackend.php, line 327 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code public function garbageCollection() { try { $this->connection->delete($this->bin) ->condition('expire', Cac

DatabaseBackend::ensureTableExists

protected DatabaseBackend::ensureTableExists() Check if the flood table exists and create it if not. File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 150 Class DatabaseBackend Defines the database flood backend. This is the default Drupal backend. Namespace Drupal\Core\Flood Code protected function ensureTableExists() { try { $database_schema = $this->connection->schema(); if (!$database_schema->tableExists(static::TABLE_NAME)) { $schema_definition = $

DatabaseBackend::ensureBinExists

protected DatabaseBackend::ensureBinExists() Check if the cache bin exists and create it if not. File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 356 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code protected function ensureBinExists() { try { $database_schema = $this->connection->schema(); if (!$database_schema->tableExists($this->bin)) { $schema_definition = $this->schemaDefinition(); $databas

DatabaseBackend::doSetMultiple

protected DatabaseBackend::doSetMultiple(array $items) Stores multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. See also \Drupal\Core\Cache\CacheBackendInterface::setMultiple() File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 188 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code protected function doSetMultiple(array $items) { $values = array(); foreach ($items as $cid =&g

DatabaseBackend::doInsert

protected DatabaseBackend::doInsert($name, $window, $identifier) Inserts an event into the flood table Parameters string $name: The name of an event. int $window: Number of seconds before this event expires. string $identifier: Unique identifier of the current user. See also \Drupal\Core\Flood\DatabaseBackend::register File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 81 Class DatabaseBackend Defines the database flood backend. This is the default Drupal backend. Namespace Dru

DatabaseBackend::deleteMultiple

public DatabaseBackend::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::de

DatabaseBackend::deleteAll

public DatabaseBackend::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/DatabaseBackend.php, line 270 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code public function deleteAll() { try {

DatabaseBackend::delete

public DatabaseBackend::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\CacheBacken

DatabaseBackend::clear

public DatabaseBackend::clear($name, $identifier = NULL) Makes the flood control mechanism forget an event for the current visitor. Parameters string $name: The name of an event. string $identifier: (optional) Unique identifier of the current user. Defaults to the current user's IP address). Overrides FloodInterface::clear File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 95 Class DatabaseBackend Defines the database flood backend. This is the default Drupal backend. Namespace

DatabaseBackend::catchException

protected DatabaseBackend::catchException(\Exception $e) Act on an exception when flood might be stale. If the table does not yet exist, that's fine, but if the table exists and yet the query failed, then the flood is stale and the exception needs to propagate. Parameters $e: The exception. Throws \Exception File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 180 Class DatabaseBackend Defines the database flood backend. This is the default Drupal backend. Namespace Drupal\Core\F