You are here

private function Store::load in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/HttpCache/Store.php \Symfony\Component\HttpKernel\HttpCache\Store::load()

Loads data for the given key.

Parameters

string $key The store key:

Return value

string The data associated with the key

1 call to Store::load()
Store::getMetadata in vendor/symfony/http-kernel/HttpCache/Store.php
Gets all data associated with the given key.

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 323

Class

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

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function load($key) {
  $path = $this
    ->getPath($key);
  return is_file($path) ? file_get_contents($path) : false;
}