DatabaseBackendFactory::$checksumProvider

The cache tags checksum provider. Type: \Drupal\Core\Cache\CacheTagsChecksumInterface File core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php, line 21 Class DatabaseBackendFactory Namespace Drupal\Core\Cache Code protected $checksumProvider;

DatabaseBackendFactory

Hierarchy class \Drupal\Core\Cache\DatabaseBackendFactory implements CacheFactoryInterface File core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php, line 7 Namespace Drupal\Core\Cache Members Name Modifiers Type Description DatabaseBackendFactory::$checksumProvider protected property The cache tags checksum provider. DatabaseBackendFactory::$connection protected property The database connection. DatabaseBackendFactory::get function Gets DatabaseBackend

DatabaseBackend::__construct

public DatabaseBackend::__construct(Connection $connection, RequestStack $request_stack) Construct the DatabaseBackend. Parameters \Drupal\Core\Database\Connection $connection: The database connection which will be used to store the flood event information. \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request. File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 42 Class DatabaseBackend Defines the database flood backen

DatabaseBackend::__construct

public DatabaseBackend::__construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider, $bin) Constructs a DatabaseBackend object. Parameters \Drupal\Core\Database\Connection $connection: The database connection. \Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider. string $bin: The cache bin for which the object is created. File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 49 Class DatabaseBackend Defines a default

DatabaseBackend::TABLE_NAME

The database table name. File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 17 Class DatabaseBackend Defines the database flood backend. This is the default Drupal backend. Namespace Drupal\Core\Flood Code const TABLE_NAME = 'flood';

DatabaseBackend::setMultiple

public DatabaseBackend::setMultiple(array $items) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, see Cach

DatabaseBackend::set

public DatabaseBackend::set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: The cache ID of the

DatabaseBackend::schemaDefinition

public DatabaseBackend::schemaDefinition() Defines the schema for the flood table. File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 189 Class DatabaseBackend Defines the database flood backend. This is the default Drupal backend. Namespace Drupal\Core\Flood Code public function schemaDefinition() { return [ 'description' => 'Flood controls the threshold of events, such as the number of contact attempts.', 'fields' => [ 'fid' => [ 'description'

DatabaseBackend::schemaDefinition

public DatabaseBackend::schemaDefinition() Defines the schema for the {cache_*} bin tables. File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 421 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code public function schemaDefinition() { $schema = array( 'description' => 'Storage for the cache API.', 'fields' => array( 'cid' => array( 'description' => 'Primary Key: Unique cache ID.', 'type' =>

DatabaseBackend::removeBin

public DatabaseBackend::removeBin() Remove a cache bin. Overrides CacheBackendInterface::removeBin File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 344 Class DatabaseBackend Defines a default cache implementation. Namespace Drupal\Core\Cache Code public function removeBin() { try { $this->connection->schema()->dropTable($this->bin); } catch (\Exception $e) { $this->catchException($e); } }