StoreInterface
interface StoreInterface
Interface implemented by HTTP cache stores.
Methods
Details
at line line 34
Response|null
lookup(Request $request)
Locates a cached Response for the Request provided.
at line line 47
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 54
invalidate(Request $request)
Invalidates all cache entries that match the request.
at line line 63
bool|string
lock(Request $request)
Locks the cache for a given Request.
at line line 72
bool
unlock(Request $request)
Releases the lock for the given Request.
at line line 81
bool
isLocked(Request $request)
Returns whether or not a lock exists.
at line line 90
bool
purge(string $url)
Purges data for the given URL.
at line line 95
cleanup()
Cleanups storage.