original_string: private function _getFastLifetime($lifetime, $priority, $maxLifetime = null)
      {
          if ($lifetime <= 0) {
              // if no lifetime, we have an infinite lifetime
              // we need to use arbitrary lifetimes
              $fastLifetime = (int) (2592000 / (11 - $priority));
          } else {
              // prevent computed infinite lifetime (0) by ceil
              $fastLifetime = (int) ceil($lifetime / (11 - $priority));
          }
  
          if ($maxLifetime >= 0 && $fastLifetime > $maxLifetime) {
              return $maxLifetime;
          }
  
          return $fastLifetime;
      }
code: private function _getFastLifetime($lifetime, $priority, $maxLifetime = null)
      {
          if ($lifetime <= 0) {
              // if no lifetime, we have an infinite lifetime
              // we need to use arbitrary lifetimes
              $fastLifetime = (int) (2592000 / (11 - $priority));
          } else {
              // prevent computed infinite lifetime (0) by ceil
              $fastLifetime = (int) ceil($lifetime / (11 - $priority));
          }
  
          if ($maxLifetime >= 0 && $fastLifetime > $maxLifetime) {
              return $maxLifetime;
          }
  
          return $fastLifetime;
      }
code_tokens: private function _getFastLifetime ( $ lifetime , $ priority , $ maxLifetime = null ) { if ( $ lifetime <= 0 ) { // if no lifetime, we have an infinite lifetime // we need to use arbitrary lifetimes $ fastLifetime = ( int ) ( 2592000 / ( 11 - $ priority ) ) ; } else { // prevent computed infinite lifetime (0) by ceil $ fastLifetime = ( int ) ceil ( $ lifetime / ( 11 - $ priority ) ) ; } if ( $ maxLifetime >= 0 && $ fastLifetime > $ maxLifetime ) { return $ maxLifetime ; } return $ fastLifetime ; }
docstring: Compute and return the lifetime for the fast backend
  
  @param int $lifetime original lifetime
  @param int $priority priority
  @param int $maxLifetime maximum lifetime
  @return int lifetime for the fast backend
docstring_tokens: Compute and return the lifetime for the fast backend