original_string: public function cache($since, $time = '+1 day')
      {
          deprecationWarning(
              'Response::cache() is deprecated. ' .
              'Use withCache() instead.'
          );
  
          if (!is_int($time)) {
              $time = strtotime($time);
          }
  
          $this->_setHeader('Date', gmdate('D, j M Y G:i:s ', time()) . 'GMT');
  
          $this->modified($since);
          $this->expires($time);
          $this->sharable(true);
          $this->maxAge($time - time());
      }
code: public function cache($since, $time = '+1 day')
      {
          deprecationWarning(
              'Response::cache() is deprecated. ' .
              'Use withCache() instead.'
          );
  
          if (!is_int($time)) {
              $time = strtotime($time);
          }
  
          $this->_setHeader('Date', gmdate('D, j M Y G:i:s ', time()) . 'GMT');
  
          $this->modified($since);
          $this->expires($time);
          $this->sharable(true);
          $this->maxAge($time - time());
      }
code_tokens: public function cache ( $ since , $ time = '+1 day' ) { deprecationWarning ( 'Response::cache() is deprecated. ' . 'Use withCache() instead.' ) ; if ( ! is_int ( $ time ) ) { $ time = strtotime ( $ time ) ; } $ this -> _setHeader ( 'Date' , gmdate ( 'D, j M Y G:i:s ' , time ( ) ) . 'GMT' ) ; $ this -> modified ( $ since ) ; $ this -> expires ( $ time ) ; $ this -> sharable ( true ) ; $ this -> maxAge ( $ time - time ( ) ) ; }
docstring: Sets the correct headers to instruct the client to cache the response.
  
  @param string $since a valid time since the response text has not been modified
  @param string $time a valid time for cache expiry
  @return void
  @deprecated 3.4.0 Use withCache() instead.
docstring_tokens: Sets the correct headers to instruct the client to cache the response .