\Guzzle\Plugin\CacheCallbackCanCacheStrategy

Determines if a request can be cached using a callback

Summary

Methods
Properties
Constants
canCacheRequest()
canCacheResponse()
__construct()
No public properties found
No constants found
No protected methods found
$requestCallback
$responseCallback
N/A
No private methods found
No private properties found
N/A

Properties

$requestCallback

$requestCallback : callable

Type

callable — Callback for request

$responseCallback

$responseCallback : callable

Type

callable — Callback for response

Methods

canCacheRequest()

canCacheRequest(\Guzzle\Http\Message\RequestInterface  $request) : boolean

Determine if a request can be cached

Parameters

\Guzzle\Http\Message\RequestInterface $request

Request to determine

Returns

boolean

canCacheResponse()

canCacheResponse(\Guzzle\Http\Message\Response  $response) : boolean

Determine if a response can be cached

Parameters

\Guzzle\Http\Message\Response $response

Response to determine

Returns

boolean

__construct()

__construct(\Closure|array|mixed  $requestCallback = null, \Closure|array|mixed  $responseCallback = null) 

Parameters

\Closure|array|mixed $requestCallback

Callable method to invoke for requests

\Closure|array|mixed $responseCallback

Callable method to invoke for responses

Throws

\Guzzle\Common\Exception\InvalidArgumentException