public function PhpRedis::__construct in Redis 8
Same name in this branch
- 8 src/Lock/PhpRedis.php \Drupal\redis\Lock\PhpRedis::__construct()
- 8 src/Flood/PhpRedis.php \Drupal\redis\Flood\PhpRedis::__construct()
- 8 src/Queue/PhpRedis.php \Drupal\redis\Queue\PhpRedis::__construct()
- 8 src/Cache/PhpRedis.php \Drupal\redis\Cache\PhpRedis::__construct()
- 8 src/PersistentLock/PhpRedis.php \Drupal\redis\PersistentLock\PhpRedis::__construct()
Construct the PhpRedis flood backend.
Parameters
\Drupal\redis\ClientFactory $client_factory: The database connection which will be used to store the flood event information.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request.
File
- src/
Flood/ PhpRedis.php, line 38
Class
- PhpRedis
- Defines the database flood backend. This is the default Drupal backend.
Namespace
Drupal\redis\FloodCode
public function __construct(ClientFactory $client_factory, RequestStack $request_stack) {
$this->client = $client_factory
->getClient();
$this->requestStack = $request_stack;
}