Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy::__construct PHP 메소드

__construct() 공개 메소드

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