class PermanentDatabaseBackendFactory in Permanent Cache Bin 8
Same name and namespace in other branches
- 8.2 src/Cache/PermanentDatabaseBackendFactory.php \Drupal\pcb\Cache\PermanentDatabaseBackendFactory
Class PermanentDatabaseBackendFactory.
Hierarchy
- class \Drupal\Core\Cache\DatabaseBackendFactory implements CacheFactoryInterface
- class \Drupal\pcb\Cache\PermanentDatabaseBackendFactory
Expanded class hierarchy of PermanentDatabaseBackendFactory
1 string reference to 'PermanentDatabaseBackendFactory'
1 service uses PermanentDatabaseBackendFactory
File
- src/
Cache/ PermanentDatabaseBackendFactory.php, line 10
Namespace
Drupal\pcb\CacheView source
class PermanentDatabaseBackendFactory extends DatabaseBackendFactory {
/**
* {@inheritdoc}
*/
public function get($bin) {
$max_rows = $this
->getMaxRowsForBin($bin);
return new PermanentDatabaseBackend($this->connection, $this->checksumProvider, $bin, $max_rows);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DatabaseBackendFactory:: |
protected | property | The cache tags checksum provider. | |
DatabaseBackendFactory:: |
protected | property | The database connection. | |
DatabaseBackendFactory:: |
protected | property | The site settings. | |
DatabaseBackendFactory:: |
protected | function | Gets the max rows for the specified cache bin. | |
DatabaseBackendFactory:: |
public | function | Constructs the DatabaseBackendFactory object. | |
PermanentDatabaseBackendFactory:: |
public | function |
Gets DatabaseBackend for the specified cache bin. Overrides DatabaseBackendFactory:: |