Stay organized with collections
Save and categorize content based on your preferences.
Memorystore for Redis supports a subset of the native Redis configuration
parameters that you can modify to customize the
behavior of your Redis instance. Other Redis configuration parameters are set
to default values and cannot be modified.
Configuration changes take place immediately, don't require a restart of the
instance, and are saved if the instance restarts. You can update modifiable
configuration parameters after instance creation.
For tables showing acceptable values for modifiable parameters
and default values for unmodifiable parameters, see the Redis configurations
reference page.
Viewing and updating configurations in the Google Cloud console
Go to the Memorystore for Redis page in the Google Cloud console.
Memorystore for Redis
Click the Instance ID of the instance.
Click Edit.
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.
Setting and updating configuration parameters with the Google Cloud CLI
You can set modifiable configuration parameters when creating or updating an
instance. To set a configuration parameter during creation, enter the following
command, replacing the highlighted-variables with the appropriate
values:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 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."]]