Class RapidCache (1.16.0)

RapidCache(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A Rapid Cache Instance.

Attributes

Name Description
name str
Immutable. The resource name of this RapidCache. Format: projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}
zone str
Immutable. The zone in which the cache instance is running. For example, us-central1-a.
cache_type str
Immutable. The type of Rapid Cache this represents. Valid values include: 'rapid-cache' and 'rapid-cache-ultra'.
ttl google.protobuf.duration_pb2.Duration
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.
admission_policy str
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.
state str
Output only. Cache state including running, creating, and disabled.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time when Rapid cache instance is allocated.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Time when Rapid cache instance is last updated, including creation.
pending_update bool
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.