Neos\Cache\Backend\AbstractBackend::setDefaultLifetime PHP Method

setDefaultLifetime() public method

Sets the default lifetime for this cache backend
public setDefaultLifetime ( integer $defaultLifetime ) : void
$defaultLifetime integer Default lifetime of this cache backend in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime.
return void
    public function setDefaultLifetime($defaultLifetime)
    {
        if (!is_int($defaultLifetime) || $defaultLifetime < 0) {
            throw new \InvalidArgumentException('The default lifetime must be given as a positive integer.', 1233072774);
        }
        $this->defaultLifetime = $defaultLifetime;
    }