public function enableCache($timestamp, $ttl)
    {
        // HttpCache alters HeaderBag's state internally
        $handler = new HttpCache($this->headerBag);
        $handler->configure($timestamp, $ttl);

        return $this;
    }
public function enableCache($timestamp, $ttl)
    {
        // HttpCache alters HeaderBag's state internally
        $handler = new HttpCache($this->headerBag);
        $handler->configure($timestamp, $ttl);

        return $this;
    }
public function enableCache ( $ timestamp , $ ttl ) { // HttpCache alters HeaderBag's state internally $ handler = new HttpCache ( $ this -> headerBag ) ; $ handler -> configure ( $ timestamp , $ ttl ) ; return $ this ; }
Enables internal HTTP cache mechanism

@param integer $timestamp Last modified timestamp
@param integer $ttl Time to live in seconds
@return \Krystal\Http\Response\HttpResponse
Enables internal HTTP cache mechanism