PermanentDatabaseBackendFactory.php in Permanent Cache Bin 8
Same filename and directory in other branches
Namespace
Drupal\pcb\CacheFile
src/Cache/PermanentDatabaseBackendFactory.phpView source
<?php
namespace Drupal\pcb\Cache;
use Drupal\Core\Cache\DatabaseBackendFactory;
/**
* Class PermanentDatabaseBackendFactory.
*/
class PermanentDatabaseBackendFactory extends DatabaseBackendFactory {
/**
* {@inheritdoc}
*/
public function get($bin) {
$max_rows = $this
->getMaxRowsForBin($bin);
return new PermanentDatabaseBackend($this->connection, $this->checksumProvider, $bin, $max_rows);
}
}
Classes
Name | Description |
---|---|
PermanentDatabaseBackendFactory | Class PermanentDatabaseBackendFactory. |