You are here

class PermanentRedisBackendFactory 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

Class PermanentMemcacheBackendFactory.

Hierarchy

Expanded class hierarchy of PermanentRedisBackendFactory

1 string reference to 'PermanentRedisBackendFactory'
pcb_redis.services.yml in modules/pcb_redis/pcb_redis.services.yml
modules/pcb_redis/pcb_redis.services.yml
1 service uses PermanentRedisBackendFactory
cache.backend.permanent_redis in modules/pcb_redis/pcb_redis.services.yml
Drupal\pcb_redis\Cache\PermanentRedisBackendFactory

File

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

Namespace

Drupal\pcb_redis\Cache
View source
class PermanentRedisBackendFactory extends CacheBackendFactory {

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

}

Members

Namesort descending Modifiers Type Description Overrides
CacheBackendFactory::$bins protected property List of cache bins.
CacheBackendFactory::$checksumProvider protected property The cache tags checksum provider.
CacheBackendFactory::$clientFactory protected property
CacheBackendFactory::$serializer protected property The serialization class to use.
CacheBackendFactory::__construct public function Creates a redis CacheBackendFactory.
PermanentRedisBackendFactory::get public function Gets a cache backend class for a given cache bin. Overrides CacheBackendFactory::get