升级实例的 Valkey 版本
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页介绍如何升级 Memorystore for Valkey 实例的版本。如需查看可用版本的列表,请参阅支持的版本。如需详细了解升级操作期间的实例行为,请参阅版本升级行为。
升级实例版本
控制台
在 Google Cloud 控制台中,前往 Memorystore for Valkey 页面。
Memorystore for Valkey
点击要升级的实例的 ID。
在 Configurations(配置)部分中,点击 Valkey Version(值键版本)旁边的 Upgrade(升级)。
在升级实例版本对话框中,执行以下操作:
- 点击版本菜单。
- 选择要将实例升级到的版本。
- 点击更新实例。
gcloud
如需升级实例的版本,请使用 gcloud memorystore instances update
命令。
gcloud memorystore instances update INSTANCE_ID \
--project=PROJECT_ID \
--location=REGION_ID \
--engine-version=ENGINE_VERSION
替换以下内容:
- INSTANCE_ID:Memorystore for Valkey 实例的 ID。
- PROJECT_ID:实例所在的 Google Cloud 项目的 ID 或编号。
- REGION_ID:实例所在的区域。
- ENGINE_VERSION:您要将实例升级到的 Valkey 版本号。唯一可接受的值是
VALKEY_7_2
和 VALKEY_8_0
。
例如:
gcloud memorystore instances update my-instance \
--project=my-project \
--location=us-central1 \
--engine-version=VALKEY_8_0
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-04-09。
[[["易于理解","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-04-09。"],[],[]]