bool HHVM_FUNCTION(apc_store_as_primed_do_not_use,
                   const String& key,
                   const Variant& var) {
  if (!apcExtension::Enable) return false;
  if (isKeyInvalid(key)) {
    throw_invalid_argument("apc key: (contains invalid characters)");
    return false;
  }
  apc_store().setWithoutTTL(key, var);
  return true;
}