public function setLifetime($future)
    {
        if (!$future) {
            return;
        }

        $interval = $future - $this->now;
        if ($interval > 0 && $interval < $this->getLifetime()) {
            $this->lifetime = $interval;
        }
    }
public function setLifetime($future)
    {
        if (!$future) {
            return;
        }

        $interval = $future - $this->now;
        if ($interval > 0 && $interval < $this->getLifetime()) {
            $this->lifetime = $interval;
        }
    }
public function setLifetime ( $ future ) { if ( ! $ future ) { return ; } $ interval = $ future - $ this -> now ; if ( $ interval > 0 && $ interval < $ this -> getLifetime ( ) ) { $ this -> lifetime = $ interval ; } }
Set the cache lifetime programmatically

@param int $future timestamp
Set the cache lifetime programmatically