public function Store::__construct

Constructor.

Parameters

string $root The path to the cache directory:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php, line 36

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function __construct($root) {
  $this->root = $root;
  if (!is_dir($this->root)) {
    mkdir($this->root, 0777, true);
  }
  $this->keyCache = new \SplObjectStorage();
  $this->locks = array();
}