Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memorystore for Redis mendukung sebagian parameter konfigurasi Redis native yang dapat Anda ubah untuk menyesuaikan perilaku instance Redis. Parameter konfigurasi Redis lainnya ditetapkan ke nilai default dan tidak dapat diubah.
Perubahan konfigurasi langsung dilakukan, tidak memerlukan mulai ulang instance, dan disimpan jika instance dimulai ulang. Anda dapat memperbarui parameter konfigurasi
yang dapat diubah setelah pembuatan instance.
Untuk tabel yang menampilkan nilai yang dapat diterima untuk parameter yang dapat diubah dan nilai default untuk parameter yang tidak dapat diubah, lihat halaman referensi Konfigurasi Redis.
Melihat dan memperbarui konfigurasi di Google Cloud console
Bagian Konfigurasi kini dapat dilihat. Klik tempat sampah di sebelah kanan konfigurasi untuk menghapusnya, atau klik Tambahkan Konfigurasi untuk menambahkan konfigurasi baru.
Menetapkan dan memperbarui parameter konfigurasi dengan Google Cloud CLI
Anda dapat menetapkan parameter konfigurasi yang dapat diubah saat membuat atau memperbarui
instance. Untuk menetapkan parameter konfigurasi selama pembuatan, masukkan perintah
berikut, ganti highlighted-variables dengan nilai
yang sesuai:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]