Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara mengonfigurasi dan memantau layanan memcache untuk
aplikasi Anda menggunakan konsol Google Cloud .
Untuk mempelajari memcache lebih lanjut,
baca Ringkasan Memcache.
Tingkat layanan Memcache: Menunjukkan apakah aplikasi Anda menggunakan tingkat layanan Bersama
atau Khusus.
Jika Anda adalah pemilik project, Anda dapat beralih di antara keduanya. Pelajari tingkat layanan lebih lanjut.
Rasio hit: Menampilkan persentase permintaan data yang disajikan dari
cache, serta jumlah mentah permintaan data yang disajikan
dari cache.
Item dalam cache.
Usia item terlama: Usia item terlama yang disimpan di cache. Perhatikan bahwa usia
item akan di-reset setiap kali item digunakan, baik dibaca maupun ditulis.
Total ukuran cache.
Anda dapat melakukan salah satu tindakan berikut:
Kunci baru: Menambahkan kunci baru ke cache.
Temukan kunci: Mengambil kunci yang ada.
Kosongkan cache: Menghapus semua key-value pair dari cache.
(Hanya untuk memcache khusus) Lihat daftar Hotkey.
"Hotkey" adalah kunci yang menerima lebih dari 100 kueri per detik (QPS) di
memcache.
Daftar ini berisi maksimal 100 hotkey, yang diurutkan berdasarkan QPS tertinggi.
[[["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-08-11 UTC."],[[["\u003cp\u003eThis guide outlines the process of configuring and monitoring the memcache service for applications using the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eUsers can choose between two memcache service levels: Shared, which is free and offers cache capacity on a best-effort basis, and Dedicated, which is billed by GB-hour and provides a fixed cache capacity.\u003c/p\u003e\n"],["\u003cp\u003eThe memcache page in the Google Cloud console displays reports on the service level, hit ratio, items in the cache, oldest item age, and total cache size.\u003c/p\u003e\n"],["\u003cp\u003eThe console allows actions such as adding a new key, retrieving an existing key, and flushing the entire cache.\u003c/p\u003e\n"],["\u003cp\u003eDedicated memcache users can view a list of hot keys, which are keys that receive over 100 queries per second, sorted by the highest queries per second (QPS).\u003c/p\u003e\n"]]],[],null,["# Using Memcache\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\nGo Java PHP Python\n\nThis page describes how to configure and monitor the memcache service for your\napplication using the Google Cloud console.\n\nTo learn more about memcache,\nread the [Memcache Overview](/appengine/docs/standard/services/memcache).\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n|\n| /services/access). If you are updating to the App Engine runtime, refer to the [Upgrade to second-generation runtimes]() page to learn about your migration options for legacy bundled services.\n\nConfigure memcache\n------------------\n\n1. Go to the Memcache page in the Google Cloud console. \n [Go to the Memcache page](https://console.cloud.google.com/appengine/memcache)\n2. Select the memcache service level you want to use:\u003cbr /\u003e\n\n - **Shared** (default) - free and provides cache capacity on a best-effort basis.\n - **Dedicated** - billed by the GB-hour of cache size and provides a fixed cache capacity assigned exclusively to your application.\n\nLearn more about available service classes in [Memcache Overview](#service_levels).\n\nMonitor memcache in the Google Cloud console\n--------------------------------------------\n\n1. Go to the Memcache page in the Google Cloud console. \n [Go to the Memcache page](https://console.cloud.google.com/appengine/memcache) \n2. Look at the following reports:\n - **Memcache service level** : Shows if your application is using the Shared or Dedicated service level. If you are an owner of the project, you can switch between the two. Learn more about the [service levels](./#service_levels).\n - **Hit ratio**: Shows the percentage of data requests that were served from the cache, as well as the raw number of data requests that were served from the cache.\n - **Items in the cache**.\n - **Oldest item age**: The age of the oldest cached item. Note that the age of an item is reset every time it is used, either read or written.\n - **Total cache size**.\n3. You can take any of the following actions:\n\n - **New key**: Add a new key to the cache.\n - **Find a key**: Retrieve an existing key.\n - **Flush cache**: Remove all the key-value pairs from the cache.\n4. (Dedicated memcache only) Look through the list of **Hot keys**.\n\n - \"Hot keys\" are keys that receive more than 100 queries per second (QPS) in the memcache.\n - This list includes up to 100 hot keys, sorted by highest QPS.\n\nWhat's next\n-----------\n\n- Learn more about memcache in the [Memcache Overview](/appengine/docs/standard/services/memcache)."]]