Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy::__construct PHP Method

__construct() public method

public __construct ( Kevinrob\GuzzleCache\Storage\CacheStorageInterface $cache = null )
$cache Kevinrob\GuzzleCache\Storage\CacheStorageInterface
    public function __construct(CacheStorageInterface $cache = null)
    {
        $this->storage = $cache !== null ? $cache : new VolatileRuntimeStorage();
    }

Usage Example

 public function __construct(CacheStorageInterface $cache = null, $ttl)
 {
     $this->ttl = $ttl;
     parent::__construct($cache);
 }
All Usage Examples Of Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy::__construct