Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, descrevemos como configurar e monitorar o serviço Memcache para seu
aplicativo usando o console Google Cloud .
Para saber mais sobre o Memcache,
leia a Visão geral do Memcache.
Nível de serviço do Memcache: mostra se o aplicativo está usando o nível de serviço Compartilhado
ou Dedicado.
Se você for proprietário do projeto, poderá alternar entre os dois. Saiba
mais sobre os níveis de serviço.
Taxa de acerto: mostra a porcentagem de solicitações de dados e
o número bruto de solicitações de dados que foram exibidos
do cache.
Itens no cache.
Idade do item mais antigo: a idade do item mais antigo armazenado em cache. Observe que a idade de um item é redefinida sempre que ele é usado, lido ou gravado.
Tamanho total do cache.
Você pode realizar uma destas ações:
Nova chave: adiciona uma nova chave ao cache.
Encontrar uma chave: recupera uma chave existente.
Limpar o cache: remove todos os pares de chave-valor do cache.
(Somente no Memcache dedicado) Consulte a lista de chaves com uso intenso.
"Chaves de uso intenso" são as que recebem mais de cem consultas por segundo (QPS, na sigla em inglês) no Memcache.
Essa lista inclui até 100 chaves de atalho, classificadas pelo QPS mais alto.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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)."]]