1.11.0 (latest) 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1

    public sealed class RapidCache : IMessage<RapidCache>, IEquatable<RapidCache>, IDeepCloneable<RapidCache>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Storage v2 API class RapidCache.

A Rapid Cache Instance.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RapidCache

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[RapidCache](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RapidCache.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RapidCache](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RapidCache.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[RapidCache](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RapidCache.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Storage.Control.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.md.txt)

## Assembly

Google.Cloud.Storage.Control.V2.dll

## Constructors

### RapidCache()

    public RapidCache()

### RapidCache(RapidCache)

    public RapidCache(RapidCache other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `RapidCache` |

## Properties

### AdmissionPolicy

    public string AdmissionPolicy { get; set; }

Cache admission policy. Valid policies includes:
no_read_admission, admit-on-first-miss and admit-on-second-miss. Defaults
to admit-on-first-miss for both AC and RCU. Default value is applied if not
specified in the create request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CacheType

    public string CacheType { get; set; }

Immutable. The type of Rapid Cache this represents. Valid values include:
'rapid-cache' and 'rapid-cache-ultra'.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Time when Rapid cache instance is allocated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Name

    public string Name { get; set; }

Immutable. The resource name of this RapidCache.
Format:
projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PendingUpdate

    public bool PendingUpdate { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### RapidCacheName

    public RapidCacheName RapidCacheName { get; set; }

[RapidCacheName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RapidCacheName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.RapidCache.md.txt#Google_Cloud_Storage_Control_V2_RapidCache_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RapidCacheName` |   |

### State

    public string State { get; set; }

Output only. Cache state including running, creating, and disabled.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Ttl

    public Duration Ttl { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Time when Rapid cache instance is last updated, including
creation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Zone

    public string Zone { get; set; }

Immutable. The zone in which the cache instance is running. For example,
us-central1-a.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |