src/Http/Response.php
public function setTtl(int $seconds): self
    {
        $this->setSharedMaxAge($this->getAge() + $seconds);

        return $this;
    }
public function setTtl(int $seconds): self
    {
        $this->setSharedMaxAge($this->getAge() + $seconds);

        return $this;
    }
public function setTtl ( int $ seconds ) : self { $ this -> setSharedMaxAge ( $ this -> getAge ( ) + $ seconds ) ; return $ this ; }
Sets the response's time-to-live for shared caches.

This method adjusts the Cache-Control/s-maxage directive.

@param int $seconds Number of seconds

@return $this
Sets the response s time - to - live for shared caches .