package and depencies
This commit is contained in:
@@ -26,10 +26,8 @@ interface StoreInterface
|
||||
{
|
||||
/**
|
||||
* Locates a cached Response for the Request provided.
|
||||
*
|
||||
* @return Response|null
|
||||
*/
|
||||
public function lookup(Request $request);
|
||||
public function lookup(Request $request): ?Response;
|
||||
|
||||
/**
|
||||
* Writes a cache entry to the store for the given Request and Response.
|
||||
@@ -39,7 +37,7 @@ interface StoreInterface
|
||||
*
|
||||
* @return string The key under which the response is stored
|
||||
*/
|
||||
public function write(Request $request, Response $response);
|
||||
public function write(Request $request, Response $response): string;
|
||||
|
||||
/**
|
||||
* Invalidates all cache entries that match the request.
|
||||
@@ -51,28 +49,28 @@ interface StoreInterface
|
||||
*
|
||||
* @return bool|string true if the lock is acquired, the path to the current lock otherwise
|
||||
*/
|
||||
public function lock(Request $request);
|
||||
public function lock(Request $request): bool|string;
|
||||
|
||||
/**
|
||||
* Releases the lock for the given Request.
|
||||
*
|
||||
* @return bool False if the lock file does not exist or cannot be unlocked, true otherwise
|
||||
*/
|
||||
public function unlock(Request $request);
|
||||
public function unlock(Request $request): bool;
|
||||
|
||||
/**
|
||||
* Returns whether or not a lock exists.
|
||||
*
|
||||
* @return bool true if lock exists, false otherwise
|
||||
*/
|
||||
public function isLocked(Request $request);
|
||||
public function isLocked(Request $request): bool;
|
||||
|
||||
/**
|
||||
* Purges data for the given URL.
|
||||
*
|
||||
* @return bool true if the URL exists and has been purged, false otherwise
|
||||
*/
|
||||
public function purge(string $url);
|
||||
public function purge(string $url): bool;
|
||||
|
||||
/**
|
||||
* Cleanups storage.
|
||||
|
Reference in New Issue
Block a user