Store
class Store implements StoreInterface
Store implements all the logic for storing cache metadata (Request and Response headers).
Methods
__construct(string $root)
Constructor.
cleanup()
Cleanups storage.
string
bool
purge(string $url)
Purges data for the given URL.
getPath($key)
No description
Details
at line line 38
__construct(string $root)
Constructor.
at line line 53
cleanup()
Cleanups storage.
at line line 78
bool|string
lock(Request $request)
Locks the cache for a given Request.
at line line 104
bool
unlock(Request $request)
Releases the lock for the given Request.
at line line 111
bool
isLocked(Request $request)
Returns whether or not a lock exists.
at line line 126
Response|null
lookup(Request $request)
Locates a cached Response for the Request provided.
at line line 171
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.
at line line 235
invalidate(Request $request)
Invalidates all cache entries that match the request.
at line line 312
bool
purge(string $url)
Purges data for the given URL.