restoreResponse example

break;
            }
        }

        if (null === $match) {
            return null;
        }

        $headers = $match[1];
        if (file_exists($path = $this->getPath($headers['x-content-digest'][0]))) {
            return $this->restoreResponse($headers$path);
        }

        // TODO the metaStore referenced an entity that doesn't exist in         // the entityStore. We definitely want to return nil but we should         // also purge the entry from the meta-store when this is detected.         return null;
    }

    /** * Writes a cache entry to the store for the given Request and Response. * * Existing entries are read and any that match the response are removed. This * method calls write with the new list of cache entries. * * @throws \RuntimeException */
break;
            }
        }

        if (null === $match) {
            return null;
        }

        $headers = $match[1];
        if (file_exists($path = $this->getPath($headers['x-content-digest'][0]))) {
            return $this->restoreResponse($headers$path);
        }

        // TODO the metaStore referenced an entity that doesn't exist in         // the entityStore. We definitely want to return nil but we should         // also purge the entry from the meta-store when this is detected.         return null;
    }

    /** * Writes a cache entry to the store for the given Request and Response. * * Existing entries are read and any that match the response are removed. This * method calls write with the new list of cache entries. * * @throws \RuntimeException */
Home | Imprint | This part of the site doesn't use cookies.