[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Upgrade the Valkey version of an instance\n\nThis page describes how to upgrade the version of a Memorystore for Valkey\ninstance. For a list of available versions, see [Supported versions](/memorystore/docs/valkey/supported-versions).\nFor more information about the behavior of an instance during an upgrade\noperation, see [Version upgrade behavior](/memorystore/docs/valkey/about-upgrading-version#version-upgrade-behavior).\n\nUpgrade the instance version\n----------------------------\n\n**Important:** You can upgrade the version of an instance to any newer version. For example, you can upgrade from `7.2` to `8.0`. \n\n### Console\n\n1. In the Google Cloud console, go to the Memorystore for Valkey page.\n\n [Memorystore for Valkey](https://console.cloud.google.com/memorystore/valkey/instances?)\n2. Click the ID of the instance that you want to upgrade.\n\n3. In the **Configurations** section, next to **Valkey Version** , click\n **Upgrade**.\n\n4. In the **Upgrade instance version** dialog, do the following:\n\n 1. Click the **Version** menu.\n 2. Select the version to which you want to upgrade your instance.\n 3. Click **Update instance**.\n\n### gcloud\n\nTo upgrade the version of your instance, use the [`gcloud memorystore instances update`](/sdk/gcloud/reference/memorystore/instances/update) command. \n\n```\ngcloud memorystore instances update INSTANCE_ID \\\n--project=PROJECT_ID \\\n--location=REGION_ID \\\n--engine-version=ENGINE_VERSION\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e: the ID of your Memorystore for Valkey instance.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID or number of the Google Cloud project where the instance is located.\n- \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: the region where the instance is located.\n- \u003cvar translate=\"no\"\u003eENGINE_VERSION\u003c/var\u003e: the version number of Valkey to which you want to upgrade your instance. The only acceptable values are `VALKEY_7_2` and `VALKEY_8_0`.\n\nFor example: \n\n```\ngcloud memorystore instances update my-instance \\\n--project=my-project \\\n--location=us-central1 \\\n--engine-version=VALKEY_8_0\n```"]]