|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($requestCallback=null, $responseCallback=null) | |
| canCacheRequest (RequestInterface $request) | |
| canCacheResponse (Response $response) | |
Protected Attributes | |
| $requestCallback | |
| $responseCallback | |
Determines if a request can be cached using a callback
Definition at line 12 of file CallbackCanCacheStrategy.php.
| Guzzle\Plugin\Cache\CallbackCanCacheStrategy::__construct | ( | $requestCallback = null, |
|
$responseCallback = null |
|||
| ) |
| \Closure | array | mixed | $requestCallback | Callable method to invoke for requests |
| \Closure | array | mixed | $responseCallback | Callable method to invoke for responses |
| InvalidArgumentException |
Definition at line 32 of file CallbackCanCacheStrategy.php.
References Guzzle\Plugin\Cache\CallbackCanCacheStrategy\$requestCallback, and Guzzle\Plugin\Cache\CallbackCanCacheStrategy\$responseCallback.
| Guzzle\Plugin\Cache\CallbackCanCacheStrategy::canCacheRequest | ( | RequestInterface | $request | ) |
Determine if a request can be cached
| RequestInterface | $request | Request to determine |
Reimplemented from Guzzle\Plugin\Cache\DefaultCanCacheStrategy.
Definition at line 46 of file CallbackCanCacheStrategy.php.
| Guzzle\Plugin\Cache\CallbackCanCacheStrategy::canCacheResponse | ( | Response | $response | ) |
Determine if a response can be cached
| Response | $response | Response to determine |
Reimplemented from Guzzle\Plugin\Cache\DefaultCanCacheStrategy.
Definition at line 53 of file CallbackCanCacheStrategy.php.
|
protected |
Callback for request
Definition at line 18 of file CallbackCanCacheStrategy.php.
Referenced by Guzzle\Plugin\Cache\CallbackCanCacheStrategy\__construct().
|
protected |
Callback for response
Definition at line 24 of file CallbackCanCacheStrategy.php.
Referenced by Guzzle\Plugin\Cache\CallbackCanCacheStrategy\__construct().