Configuring Redis instances

Cloud 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 Configuration Parameters reference page.

Viewing and updating configurations in the Google Cloud Platform Console

  1. Go to the Cloud Memorystore page in the GCP Console.
    Cloud Memorystore
  2. Click the Instance ID of the instance.
  3. Click Edit.
  4. The Redis configuration section is now visible. Click the X to the right of a configuration to delete it, or click Add item to add a new configuration.

Setting and updating configuration parameters with the Cloud SDK

You can set modifiable configuration parameters when creating or updating an instance. To set a configuration parameter during creation, enter the following command:

gcloud redis instances create myinstance --size=10 --region=us-central1 \
    --zone=us-central1-a --redis-config maxmemory-policy=noeviction

To change a configuration parameter for an existing instance, enter the following command:

gcloud redis instances update myinstance --update-redis-config maxmemory-policy=noeviction

Viewing current configuration parameters with the Cloud SDK

To view configuration parameters that you set when creating or updating an instance, enter the describe command for the instance:

gcloud redis instances describe myinstance --region us-central1
Was this page helpful? Let us know how we did:

Send feedback about...

Google Cloud Memorystore for Redis