Symfony\Component\HttpKernel\HttpCache\Store
Store implements all the logic for storing cache metadata (Request and Response headers).
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Store
implements
StoreInterface
{
- // methods
- public void __construct()
- public void cleanup()
- public Boolean|string lock()
- public Boolean unlock()
- public void isLocked()
- public Response|null lookup()
- public string write()
- protected string generateContentDigest()
- public void invalidate()
- private Boolean requestsMatch()
- private array getMetadata()
- public Boolean purge()
- private string load()
- private Boolean save()
- public void getPath()
- private string getCacheKey()
- private array persistRequest()
- private array persistResponse()
- private Response restoreResponse()
Hierarchy
Tasks
Line | Task |
---|---|
144 | the metaStore referenced an entity that doesn't exist in |
Members
private
- $keyCache
- $locks
protected
- $root
Methods
private
- getCacheKey() — Returns a cache key for the given Request.
- getMetadata() — Gets all data associated with the given key.
- load() — Loads data for the given key.
- persistRequest() — Persists the Request HTTP headers.
- persistResponse() — Persists the Response HTTP headers.
- requestsMatch() — Determines whether two Request HTTP header sets are non-varying based on the vary response header value provided.
- restoreResponse() — Restores a Response from the HTTP headers and body.
- save() — Save data for the given key.
protected
- generateContentDigest() — Returns content digest for $response.
public
- __construct() — Constructor.
- cleanup() — Cleanups storage.
- getPath()
- invalidate() — Invalidates all cache entries that match the request.
- isLocked()
- lock() — Locks the cache for a given Request.
- lookup() — Locates a cached Response for the Request provided.
- purge() — Purges data for the given URL.
- unlock() — Releases the lock for the given Request.
- write() — Writes a cache entry to the store for the given Request and Response.