Store
class Store implements StoreInterface
Store implements all the logic for storing cache metadata (Request and Response headers).
Properties
protected | $root |
Methods
No description
Cleanups storage.
Purges data for the given URL.
No description
Details
string
write(Request $request, Response $response)
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.
bool
purge(string $url)
Purges data for the given URL.
This method purges both the HTTP and the HTTPS version of the cache entry.
protected string
generateCacheKey(Request $request)
Generates a cache key for the given Request.
This method should return a key that must only depend on a normalized version of the request URI.
If the same URI can have more than one representation, based on some headers, use a Vary header to indicate them, and each representation will be stored independently under the same cache key.