Kevinrob\GuzzleCache\CacheMiddleware::__construct PHP Method

__construct() public method

public __construct ( Kevinrob\GuzzleCache\Strategy\CacheStrategyInterface $cacheStrategy = null )
$cacheStrategy Kevinrob\GuzzleCache\Strategy\CacheStrategyInterface
    public function __construct(CacheStrategyInterface $cacheStrategy = null)
    {
        $this->cacheStorage = $cacheStrategy !== null ? $cacheStrategy : new PrivateCacheStrategy();
        register_shutdown_function([$this, 'purgeReValidation']);
    }