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
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 exactlykey_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.
Auto Trait Implementations
impl !RefUnwindSafe for Cache
impl !UnwindSafe for Cache
Blanket Implementations
Mutably borrows from an owned value. Read more
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