You are here

public function PermanentRedisBackendFactory::get in Permanent Cache Bin 8

Same name and namespace in other branches
  1. 8.2 modules/pcb_redis/src/Cache/PermanentRedisBackendFactory.php \Drupal\pcb_redis\Cache\PermanentRedisBackendFactory::get()

Gets a cache backend class for a given cache bin.

Parameters

string $bin: The cache bin for which a cache backend object should be returned.

Return value

\Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin.

Overrides CacheBackendFactory::get

File

modules/pcb_redis/src/Cache/PermanentRedisBackendFactory.php, line 15

Class

PermanentRedisBackendFactory
Class PermanentMemcacheBackendFactory.

Namespace

Drupal\pcb_redis\Cache

Code

public function get($bin) {
  return new PermanentRedisBackend($bin, $this->clientFactory
    ->getClient(), $this->checksumProvider, $this->serializer);
}