You are here

PermanentDatabaseBackendFactory.php in Permanent Cache Bin 8.2

Same filename and directory in other branches
  1. 8 src/Cache/PermanentDatabaseBackendFactory.php

Namespace

Drupal\pcb\Cache

File

src/Cache/PermanentDatabaseBackendFactory.php
View 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

Namesort descending Description
PermanentDatabaseBackendFactory Class PermanentDatabaseBackendFactory.