original_string: protected function isFreshEnough(Request $request, Response $entry)
      {
          if (!$entry->isFresh()) {
              return $this->lock($request, $entry);
          }
  
          if ($this->options['allow_revalidate'] && null !== $maxAge = $request->headers->getCacheControlDirective('max-age')) {
              return $maxAge > 0 && $maxAge >= $entry->getAge();
          }
  
          return true;
      }
code: protected function isFreshEnough(Request $request, Response $entry)
      {
          if (!$entry->isFresh()) {
              return $this->lock($request, $entry);
          }
  
          if ($this->options['allow_revalidate'] && null !== $maxAge = $request->headers->getCacheControlDirective('max-age')) {
              return $maxAge > 0 && $maxAge >= $entry->getAge();
          }
  
          return true;
      }
code_tokens: protected function isFreshEnough ( Request $ request , Response $ entry ) { if ( ! $ entry -> isFresh ( ) ) { return $ this -> lock ( $ request , $ entry ) ; } if ( $ this -> options [ 'allow_revalidate' ] && null !== $ maxAge = $ request -> headers -> getCacheControlDirective ( 'max-age' ) ) { return $ maxAge > 0 && $ maxAge >= $ entry -> getAge ( ) ; } return true ; }
docstring: Checks whether the cache entry is "fresh enough" to satisfy the Request.
  
  @return bool true if the cache entry if fresh enough, false otherwise
docstring_tokens: Checks whether the cache entry is fresh enough to satisfy the Request .