/** * Internal method to set an item only if token matches * * @param mixed $token * @param string $normalizedKey * @param mixed $value * @return bool * @see getItem() * @see setItem() */ protected function internalCheckAndSetItem(&$token, &$normalizedKey, &$value) { if (is_int($token) && is_int($value)) { return apcu_cas($normalizedKey, $token, $value); } return parent::internalCheckAndSetItem($token, $normalizedKey, $value); }