interface StoreInterface
Interface implemented by HTTP cache stores.
Methods
| Response|null |
lookup(Request $request)
Locates a cached Response for the Request provided. |
|
| string |
write(Request $request, Response $response)
Writes a cache entry to the store for the given Request and Response. |
|
|
invalidate(Request $request)
Invalidates all cache entries that match the request. |
||
| Boolean|string |
lock(Request $request)
Locks the cache for a given Request. |
|
|
unlock(Request $request)
Releases the lock for the given Request. |
||
| Boolean |
purge(string $url)
Purges data for the given URL. |
|
|
cleanup()
Cleanups storage. |
Details
at line 34
public Response|null
lookup(Request $request)
Locates a cached Response for the Request provided.
at line 47
public 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 54
public
invalidate(Request $request)
Invalidates all cache entries that match the request.
at line 63
public Boolean|string
lock(Request $request)
Locks the cache for a given Request.
at line 70
public
unlock(Request $request)
Releases the lock for the given Request.
at line 79
public Boolean
purge(string $url)
Purges data for the given URL.
at line 84
public
cleanup()
Cleanups storage.