Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Memorystore for Redis unterstützt einen Teil der nativen Redis-Konfigurationsparameter, die Sie ändern können, um das Verhalten Ihrer Redis-Instanz anzupassen. Andere Redis-Konfigurationsparameter sind auf Standardwerte festgelegt und können nicht geändert werden.
Konfigurationsänderungen werden sofort übernommen, erfordern keinen Neustart der Instanz und werden im Falle eines Neustarts der Instanz gespeichert. Bearbeitbare Konfigurationsparameter können auch noch nach der Instanzerstellung aktualisiert werden.
Tabellen mit zulässigen Werten für bearbeitbare Parameter und Standardwerte für nicht bearbeitbare Parameter finden Sie auf der Referenzseite Redis-Konfigurationen.
Konfigurationen in der Google Cloud -Konsole ansehen und aktualisieren
nicht verfügbar.
Rufen Sie in der Google Cloud Console die Seite Memorystore for Redis auf.
Memorystore for Redis
Klicken Sie auf die gewünschte Instanz-ID.
Klicken Sie auf Bearbeiten.
Der Abschnitt Configurations (Konfigurationen) wird angezeigt. Klicken Sie auf den Papierkorb rechts neben einer Konfiguration, um sie zu löschen. Wenn Sie eine neue Konfiguration hinzufügen möchten, klicken Sie auf Konfiguration hinzufügen.
Konfigurationsparameter mit der Google Cloud CLI festlegen und aktualisieren
Sie können die bearbeitbaren Konfigurationsparameter beim Erstellen einer Instanz festlegen und sie auch später noch aktualisieren. Mit diesem Befehl legen Sie einen Konfigurationsparameter während der Erstellung fest. Ersetzen Sie dabei highlighted-variables durch die entsprechenden Werte:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-05 (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."]]