[[["わかりやすい","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-08-07 UTC。"],[],[],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."]]