Struct rust_actions_cache_api::Cache[][src]

pub struct Cache { /* fields omitted */ }
Expand description

Client for the cache API.

Reusing a single client for multiple requests is potentially more efficient due to connection reuse.

Implementations

Creates a new client instance.

Performs a cache lookup and returns the URL for a matching entry.

  • key_space - parameter is an identifier, usually a hex string, which must match exactly
  • key_prefixes - list of key prefixes to look up in order of preference

See the official documentation for the precedence in case of multiple matching entries. Note that key_space is not exposed by the official client and thus not mentioned there.

Performs a cache lookup and returns the content of a matching entry.

See get_url for details about the lookup.

Stores an entry in the cache.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more