public function Predis::__construct in Redis 8
Same name in this branch
- 8 src/Lock/Predis.php \Drupal\redis\Lock\Predis::__construct()
- 8 src/Flood/Predis.php \Drupal\redis\Flood\Predis::__construct()
- 8 src/Queue/Predis.php \Drupal\redis\Queue\Predis::__construct()
- 8 src/Cache/Predis.php \Drupal\redis\Cache\Predis::__construct()
- 8 src/PersistentLock/Predis.php \Drupal\redis\PersistentLock\Predis::__construct()
Creates a PHpRedis cache backend.
1 method overrides Predis::__construct()
- Predis::__construct in src/
PersistentLock/ Predis.php - Creates a Predis persistent lock backend.
File
- src/
Lock/ Predis.php, line 24
Class
- Predis
- Predis lock backend implementation.
Namespace
Drupal\redis\LockCode
public function __construct(ClientFactory $factory) {
$this->client = $factory
->getClient();
// __destruct() is causing problems with garbage collections, register a
// shutdown function instead.
drupal_register_shutdown_function([
$this,
'releaseAll',
]);
}