public function DatabaseRawBackend::__construct in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Cache/DatabaseRawBackend.php \Drupal\supercache\Cache\DatabaseRawBackend::__construct()
Constructs a DatabaseBackend object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
string $bin: The cache bin for which the object is created.
File
- src/
Cache/ DatabaseRawBackend.php, line 49 - Contains \Drupal\supercache\Cache\DatabaseRawBackend.
Class
- DatabaseRawBackend
- Defines a default cache implementation.
Namespace
Drupal\supercache\CacheCode
public function __construct(Connection $connection, $bin) {
// All cache tables should be prefixed with 'cache_'.
$bin = 'rawcache_' . $bin;
$this->bin = $bin;
$this->connection = $connection;
$this
->refreshRequestTime();
}