Pop\Cache\Cache::__construct PHP Метод

__construct() публичный Метод

Instantiate the cache object
public __construct ( Pop\Cache\Adapter\AdapterInterface $adapter, integer $lifetime ) : Cache
$adapter Pop\Cache\Adapter\AdapterInterface
$lifetime integer
Результат Cache
    public function __construct(Adapter\AdapterInterface $adapter, $lifetime = 0)
    {
        $this->lifetime = $lifetime;
        $this->adapter = $adapter;
    }