[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-05 (世界標準時間)。"],[],[],null,["# Configure a Redis instance\n\nMemorystore for Redis supports a subset of the [native Redis configuration\nparameters](https://redis.io/topics/config) that you can modify to customize the\nbehavior of your Redis instance. Other Redis configuration parameters are set\nto default values and [cannot be modified.](/memorystore/docs/redis/redis-configs#unmodifiable_configuration_parameters)\nConfiguration changes take place immediately, don't require a restart of the\ninstance, and are saved if the instance restarts. You can update modifiable\nconfiguration parameters after instance creation.\n\nFor tables showing acceptable values for modifiable parameters\nand default values for unmodifiable parameters, see the [Redis configurations](/memorystore/docs/redis/redis-configs)\nreference page.\n\n### Viewing and updating configurations in the Google Cloud console\n\n| **Note:** You can only modify the `maxmemory-gb` configuration using the gcloud CLI. The configuration is not available in the Google Cloud console\n\n1. Go to the **Memorystore for Redis** page in the Google Cloud console. \n [Memorystore for Redis](https://console.cloud.google.com/memorystore/redis/instances?)\n2. Click the Instance ID of the instance.\n3. Click **Edit**.\n4. The **Configurations** section is now visible. Click the trash bin to the right of a configuration to delete it, or click **Add Configuration** to add a new configuration.\n\n### Setting and updating configuration parameters with the Google Cloud CLI\n\n| **Note:** Make sure that you have installed the latest version of the Google Cloud CLI by running `gcloud components update`.\n\nYou can set modifiable configuration parameters when creating or updating an\ninstance. To set a configuration parameter during creation, enter the following\ncommand, replacing the \u003cvar translate=\"no\"\u003ehighlighted-variables\u003c/var\u003e with the appropriate\nvalues: \n\n```\ngcloud redis instances create instance-id --size=size --region=region-id --zone=zone --redis-config maxmemory-policy=policy\n```\n\nTo change a configuration parameter for an existing instance, enter the\nfollowing command: \n\n```\ngcloud redis instances update instance-id --update-redis-config maxmemory-policy=policy\n```\n\n### Viewing current configuration parameters with the Google Cloud CLI\n\nTo view configuration parameters that you set when creating or updating an instance,\nenter the `describe` command for the instance: \n\n```\ngcloud redis instances describe instance-id --region=region-id\n```\n\nYou won't see configuration parameters when running `describe` unless you have changed a configuration from its default value."]]