Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Psr6CacheClearer.php

function Psr6CacheClearer::clearPool

Throws

\InvalidArgumentException If the cache pool with the given name does not exist

File

vendor/symfony/http-kernel/CacheClearer/Psr6CacheClearer.php, line 51

Class

Psr6CacheClearer
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\HttpKernel\CacheClearer

Code

public function clearPool(string $name) : bool {
    if (!isset($this->pools[$name])) {
        throw new \InvalidArgumentException(\sprintf('Cache pool not found: "%s".', $name));
    }
    return $this->pools[$name]
        ->clear();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal