The time to live (TTL) of data in the cache, in seconds. Values can be expressed in
seconds. For example: 70000s for 70,000 seconds. If not specified, defaults
to 86400s, which equates to 1 day.
writable
admissionPolicy
string
The cache's admission policy. Values can be
admit-on-first-miss or
admit-on-second-miss. If not specified, it defaults to
admit-on-first-miss.
writable
Response
If successful, this method returns a google.longrunning.Operation in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# AnywhereCaches: update\n\nUpdates a [cache instance](/storage/docs/anywhere-cache)\nin a specified bucket. Only caches in a *RUNNING* state can be updated.\n\nRequired permissions\n--------------------\n\nThe authenticated user must have the `storage.anywhereCaches.update` IAM permission on the bucket to use this method.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPATCH https://storage.googleapis.com/storage/v1/b/bucket/anywhereCaches/anywhereCacheID\n```\n\nIn addition to [standard query parameters](/storage/docs/json_api/v1/parameters#query), the following parameters apply to this method.\n\n### Parameters\n\nTo see an example of how to include parameters in a request, see the\n[JSON API Overview](/storage/docs/json_api#query_parameters) page.\n\n### Request body\n\nIn the request body, supply an [AnywhereCache resource](/storage/docs/json_api/v1/AnywhereCache#resource-representation) with the following properties:\n\nResponse\n--------\n\nIf successful, this method returns a `google.longrunning.Operation` in the response body.\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]