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

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

        return $this;
    }
public function setTtl ( int $ seconds ) : Response { $ 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

@throws \RuntimeException

@return \Valkyrja\Http\Response
Sets the response s time - to - live for shared caches .