original_string: protected function store(Request $request, Response $response)
      {
          try {
              $this->store->write($request, $response);
  
              $this->record($request, 'store');
  
              $response->headers->set('Age', $response->getAge());
          } catch (\Exception $e) {
              $this->record($request, 'store-failed');
  
              if ($this->options['debug']) {
                  throw $e;
              }
          }
  
          // now that the response is cached, release the lock
          $this->store->unlock($request);
      }
code: protected function store(Request $request, Response $response)
      {
          try {
              $this->store->write($request, $response);
  
              $this->record($request, 'store');
  
              $response->headers->set('Age', $response->getAge());
          } catch (\Exception $e) {
              $this->record($request, 'store-failed');
  
              if ($this->options['debug']) {
                  throw $e;
              }
          }
  
          // now that the response is cached, release the lock
          $this->store->unlock($request);
      }
code_tokens: protected function store ( Request $ request , Response $ response ) { try { $ this -> store -> write ( $ request , $ response ) ; $ this -> record ( $ request , 'store' ) ; $ response -> headers -> set ( 'Age' , $ response -> getAge ( ) ) ; } catch ( \ Exception $ e ) { $ this -> record ( $ request , 'store-failed' ) ; if ( $ this -> options [ 'debug' ] ) { throw $ e ; } } // now that the response is cached, release the lock $ this -> store -> unlock ( $ request ) ; }
docstring: Writes the Response to the cache.
  
  @throws \Exception
docstring_tokens: Writes the Response to the cache .