public function ApcuRawBackend::__construct in Supercache 2.0.x
Same name and namespace in other branches
- 8 src/Cache/ApcuRawBackend.php \Drupal\supercache\Cache\ApcuRawBackend::__construct()
Constructs a new ApcuBackend instance.
Parameters
string $bin: The name of the cache bin.
string $site_prefix: The prefix to use for all keys in the storage that belong to this site.
\Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider.
File
- src/
Cache/ ApcuRawBackend.php, line 89 - Contains \Drupal\supercache\Cache\ApcuRawBackend.
Class
- ApcuRawBackend
- Stores cache items in the Alternative PHP Cache User Cache (APCu).
Namespace
Drupal\supercache\CacheCode
public function __construct($bin, $site_prefix) {
$this->bin = $bin;
$this->sitePrefix = $this
->shortMd5($site_prefix);
$this->binPrefix = $this->sitePrefix . ':' . $this->bin . ':';
}