You are here

protected function PhpBackend::storage in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/PhpBackend.php \Drupal\Core\Cache\PhpBackend::storage()

Gets the PHP code storage object to use.

Return value

\Drupal\Component\PhpStorage\PhpStorageInterface

File

core/lib/Drupal/Core/Cache/PhpBackend.php, line 253

Class

PhpBackend
Defines a PHP cache implementation.

Namespace

Drupal\Core\Cache

Code

protected function storage() {
  if (!isset($this->storage)) {
    $this->storage = PhpStorageFactory::get($this->bin);
  }
  return $this->storage;
}