class PermanentRedisBackendFactory in Permanent Cache Bin 8
Same name and namespace in other branches
- 8.2 modules/pcb_redis/src/Cache/PermanentRedisBackendFactory.php \Drupal\pcb_redis\Cache\PermanentRedisBackendFactory
Class PermanentMemcacheBackendFactory.
Hierarchy
- class \Drupal\redis\Cache\CacheBackendFactory implements CacheFactoryInterface
- class \Drupal\pcb_redis\Cache\PermanentRedisBackendFactory
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
File
- modules/
pcb_redis/ src/ Cache/ PermanentRedisBackendFactory.php, line 10
Namespace
Drupal\pcb_redis\CacheView source
class PermanentRedisBackendFactory extends CacheBackendFactory {
/**
* {@inheritdoc}
*/
public function get($bin) {
return new PermanentRedisBackend($bin, $this->clientFactory
->getClient(), $this->checksumProvider, $this->serializer);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheBackendFactory:: |
protected | property | List of cache bins. | |
CacheBackendFactory:: |
protected | property | The cache tags checksum provider. | |
CacheBackendFactory:: |
protected | property | ||
CacheBackendFactory:: |
protected | property | The serialization class to use. | |
CacheBackendFactory:: |
public | function | Creates a redis CacheBackendFactory. | |
PermanentRedisBackendFactory:: |
public | function |
Gets a cache backend class for a given cache bin. Overrides CacheBackendFactory:: |