Cache admission policy. Valid policies includes:
admit-on-first-miss and admit-on-second-miss. Defaults to
admit-on-first-miss. Default value is applied if not specified in the
create request.
Output only. True if there is an active update operation against this cache
instance. Subsequential update requests will be rejected if this field is
true. Output only.
Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
that defines how long a cache entry can live. Default ttl value (24hrs)
is applied if not specified in the create request. TTL must be in whole
seconds.
[[["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,["# Cloud Storage v2 API - Class AnywhereCache (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.3.0/Google.Cloud.Storage.Control.V2.AnywhereCache)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.2.0/Google.Cloud.Storage.Control.V2.AnywhereCache)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.1.0/Google.Cloud.Storage.Control.V2.AnywhereCache)\n- [1.0.1](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.0.1/Google.Cloud.Storage.Control.V2.AnywhereCache) \n\n public sealed class AnywhereCache : IMessage\u003cAnywhereCache\u003e, IEquatable\u003cAnywhereCache\u003e, IDeepCloneable\u003cAnywhereCache\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Storage v2 API class AnywhereCache.\n\nAn Anywhere Cache Instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AnywhereCache \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnywhereCache](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnywhereCache](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnywhereCache](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Storage.Control.V2](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Storage.Control.V2.dll\n\nConstructors\n------------\n\n### AnywhereCache()\n\n public AnywhereCache()\n\n### AnywhereCache(AnywhereCache)\n\n public AnywhereCache(AnywhereCache other)\n\nProperties\n----------\n\n### AdmissionPolicy\n\n public string AdmissionPolicy { get; set; }\n\nCache admission policy. Valid policies includes:\n`admit-on-first-miss` and `admit-on-second-miss`. Defaults to\n`admit-on-first-miss`. Default value is applied if not specified in the\ncreate request.\n\n### AnywhereCacheName\n\n public AnywhereCacheName AnywhereCacheName { get; set; }\n\n[AnywhereCacheName](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCacheName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.AnywhereCache#Google_Cloud_Storage_Control_V2_AnywhereCache_Name) resource name property.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Time when Anywhere cache instance is allocated.\n\n### Name\n\n public string Name { get; set; }\n\nImmutable. The resource name of this AnywhereCache.\nFormat:\n`projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`\n\n### PendingUpdate\n\n public bool PendingUpdate { get; set; }\n\nOutput only. True if there is an active update operation against this cache\ninstance. Subsequential update requests will be rejected if this field is\ntrue. Output only.\n\n### State\n\n public string State { get; set; }\n\nOutput only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.\n\n### Ttl\n\n public Duration Ttl { get; set; }\n\nCache entry TTL (ranges between 1h to 7d). This is a cache-level config\nthat defines how long a cache entry can live. Default ttl value (24hrs)\nis applied if not specified in the create request. TTL must be in whole\nseconds.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Time when Anywhere cache instance is last updated, including\ncreation.\n\n### Zone\n\n public string Zone { get; set; }\n\nImmutable. The zone in which the cache instance is running. For example,\nus-central1-a."]]