[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-21。"],[[["\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)."]]