Storage Control V2 API - Class Google::Cloud::Storage::Control::V2::RapidCache (v1.13.0)

Reference documentation and code samples for the Storage Control V2 API class Google::Cloud::Storage::Control::V2::RapidCache.

A Rapid Cache Instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#admission_policy

def admission_policy() -> ::String
Returns
  • (::String) — 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.

#admission_policy=

def admission_policy=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#cache_type

def cache_type() -> ::String
Returns
  • (::String) — Immutable. The type of Rapid Cache this represents. Valid values include: 'rapid-cache' and 'rapid-cache-ultra'.

#cache_type=

def cache_type=(value) -> ::String
Parameter
  • value (::String) — Immutable. The type of Rapid Cache this represents. Valid values include: 'rapid-cache' and 'rapid-cache-ultra'.
Returns
  • (::String) — Immutable. The type of Rapid Cache this represents. Valid values include: 'rapid-cache' and 'rapid-cache-ultra'.

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#name

def name() -> ::String
Returns
  • (::String) — Immutable. The resource name of this RapidCache. Format: projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Immutable. The resource name of this RapidCache. Format: projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}
Returns
  • (::String) — Immutable. The resource name of this RapidCache. Format: projects/{project}/buckets/{bucket}/rapidCaches/{rapid_cache}

#pending_update

def pending_update() -> ::Boolean
Returns
  • (::Boolean) — 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.

#state

def state() -> ::String
Returns
  • (::String) — Output only. Cache state including running, creating, and disabled.

#ttl

def ttl() -> ::Google::Protobuf::Duration
Returns
  • (::Google::Protobuf::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.

#ttl=

def ttl=(value) -> ::Google::Protobuf::Duration
Parameter
  • value (::Google::Protobuf::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.
Returns
  • (::Google::Protobuf::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.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#zone

def zone() -> ::String
Returns
  • (::String) — Immutable. The zone in which the cache instance is running. For example, us-central1-a.

#zone=

def zone=(value) -> ::String
Parameter
  • value (::String) — Immutable. The zone in which the cache instance is running. For example, us-central1-a.
Returns
  • (::String) — Immutable. The zone in which the cache instance is running. For example, us-central1-a.