PermanentRedisBackend.php in Permanent Cache Bin 8.2
Same filename and directory in other branches
Namespace
Drupal\pcb_redis\CacheFile
modules/pcb_redis/src/Cache/PermanentRedisBackend.phpView source
<?php
namespace Drupal\pcb_redis\Cache;
use Drupal\redis\Cache\PhpRedis;
/**
* Defines a permanent Redis cache implementation.
*
* @ingroup cache
*/
class PermanentRedisBackend extends PhpRedis {
/**
* {@inheritdoc}
*/
public function deleteAll() {
// This cache doesn't need to be deleted when doing cache rebuild.
// We do nothing here.
}
/**
* Deletes all cache items in a bin when explicitly called.
*
* @see \Drupal\Core\Cache\DatabaseBackend::deleteAll()
*/
public function deleteAllPermanent() {
parent::deleteAll();
}
/**
* {@inheritdoc}
*/
public function removeBin() {
parent::deleteAll();
}
}
Classes
Name | Description |
---|---|
PermanentRedisBackend | Defines a permanent Redis cache implementation. |