You are here

class PermanentDatabaseBackendFactory in Permanent Cache Bin 8

Same name and namespace in other branches
  1. 8.2 src/Cache/PermanentDatabaseBackendFactory.php \Drupal\pcb\Cache\PermanentDatabaseBackendFactory

Class PermanentDatabaseBackendFactory.

Hierarchy

Expanded class hierarchy of PermanentDatabaseBackendFactory

1 string reference to 'PermanentDatabaseBackendFactory'
pcb.services.yml in ./pcb.services.yml
pcb.services.yml
1 service uses PermanentDatabaseBackendFactory
cache.backend.permanent_database in ./pcb.services.yml
Drupal\pcb\Cache\PermanentDatabaseBackendFactory

File

src/Cache/PermanentDatabaseBackendFactory.php, line 10

Namespace

Drupal\pcb\Cache
View 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

Namesort descending Modifiers Type Description Overrides
DatabaseBackendFactory::$checksumProvider protected property The cache tags checksum provider.
DatabaseBackendFactory::$connection protected property The database connection.
DatabaseBackendFactory::$settings protected property The site settings.
DatabaseBackendFactory::getMaxRowsForBin protected function Gets the max rows for the specified cache bin.
DatabaseBackendFactory::__construct public function Constructs the DatabaseBackendFactory object.
PermanentDatabaseBackendFactory::get public function Gets DatabaseBackend for the specified cache bin. Overrides DatabaseBackendFactory::get