You are here

public function FloodFactory::get in Redis 8

Get actual flood backend.

Return value

\Drupal\Core\Flood\FloodInterface Return flood instance.

File

src/Flood/FloodFactory.php, line 45

Class

FloodFactory
Flood backend singleton handling.

Namespace

Drupal\redis\Flood

Code

public function get() {
  $class_name = $this->clientFactory
    ->getClass(ClientFactory::REDIS_IMPL_FLOOD);
  return new $class_name($this->clientFactory, $this->requestStack);
}