original_string: private static function putTokenInCache($name, $value, $expiry_secs) {
      $expiry_time_from_epoch = $expiry_secs - self::EXPIRY_SAFETY_MARGIN_SECS -
          self::EXPIRY_SHORT_MARGIN_SECS;
      $memcache = new \Memcache();
      $memcache->set($name, $value, null, $expiry_time_from_epoch);
      // Record the expiry time in the object being cached, so we can check it
      // when read from APC.
      self::putTokenInApc($name, $value, $expiry_secs);
    }
code: private static function putTokenInCache($name, $value, $expiry_secs) {
      $expiry_time_from_epoch = $expiry_secs - self::EXPIRY_SAFETY_MARGIN_SECS -
          self::EXPIRY_SHORT_MARGIN_SECS;
      $memcache = new \Memcache();
      $memcache->set($name, $value, null, $expiry_time_from_epoch);
      // Record the expiry time in the object being cached, so we can check it
      // when read from APC.
      self::putTokenInApc($name, $value, $expiry_secs);
    }
code_tokens: private static function putTokenInCache ( $ name , $ value , $ expiry_secs ) { $ expiry_time_from_epoch = $ expiry_secs - self :: EXPIRY_SAFETY_MARGIN_SECS - self :: EXPIRY_SHORT_MARGIN_SECS ; $ memcache = new \ Memcache ( ) ; $ memcache -> set ( $ name , $ value , null , $ expiry_time_from_epoch ) ; // Record the expiry time in the object being cached, so we can check it // when read from APC. self :: putTokenInApc ( $ name , $ value , $ expiry_secs ) ; }
docstring: Add an access token to the cache.
  
  @param string $name The name of the token to add to the cache.
  @param mixed $value An assoicative array containing the token and the
  expiration time.
  @param int $expiry_secs The unix time since epoch when the value should
  expire.
  
  @access private
docstring_tokens: Add an access token to the cache .