The AnywhereCache resource represents a [Rapid Cache cache instance](https://docs.cloud.google.com/storage/docs/rapid/rapid-cache) in Cloud Storage.

To try out the methods for this resource, see [Methods](https://docs.cloud.google.com/storage/docs/json_api/v1/AnywhereCache#methods).

## Resource representation

<br />

```
{
  "kind": "storage#AnywhereCache"
  "id": string,
  "selfLink": string,
  "bucket": string,
  "zone": string,
  "state": string,
  "createTime": datetime,
  "updateTime": datetime,
  "ttl": string,
  "ingestOnWrite": boolean,
  "pendingUpdate": boolean
}
```

| Property name | Value | Description | Notes |
|---|---|---|---|
| `kind` | `string` | The kind of item this is. For caches, this is always "`storage#anywhereCache`". |   |
| `id` | `string` | The ID of the cache instance, formatted as `BUCKET_NAME/ANYWHERE_CACHE_ZONE_ID`. For example, `example-bucket/us-east1-b`. |   |
| `selfLink` | `string` | The link (URI) of this cache. |   |
| `bucket` | `string` | The name of the bucket that owns the cache instance. For example, `example-bucket`. | Writeable |
| `zone` | `string` | The zone in which the cache instance is running. For example, `us-east1-b`. | Writeable |
| `state` | `string` | The status of the cache instance. Can be `CREATING`, `RUNNING`, or `DISABLED`. |   |
| `createTime` | `datetime` | The creation time of the cache instance. |   |
| `updateTime` | `datetime` | The last modification time of the cache instance. |   |
| `ttl` | `string` | The TTL (time to live) of data in the cache, in seconds. | Writeable |
| `ingestOnWrite` | `boolean` | Whether or not the cache ingests data as the data is written to the bucket. | Writeable |
| `pendingUpdate` | `boolean` | True if the cache instance has an active `UpdateAnywhereCache` [long-running operation](https://google.aip.dev/151) attached. |   |

## Methods

[create](https://docs.cloud.google.com/storage/docs/json_api/v1/AnywhereCaches/create)
:   Create a Rapid Cache cache.

[disable](https://docs.cloud.google.com/storage/docs/json_api/v1/AnywhereCaches/disable)
:   Disable a Rapid Cache cache.

[get](https://docs.cloud.google.com/storage/docs/json_api/v1/AnywhereCaches/get)
:   Get a Rapid Cache cache.

[list](https://docs.cloud.google.com/storage/docs/json_api/v1/AnywhereCaches/list)
:   Retrieve a list of Rapid Cache caches.

[resume](https://docs.cloud.google.com/storage/docs/json_api/v1/AnywhereCaches/resume)
:   Resume the data ingestion of a Rapid Cache cache, or revoke the
    disablement of the cache.

[update](https://docs.cloud.google.com/storage/docs/json_api/v1/AnywhereCaches/update)
:   Update a Rapid Cache cache.