[go: up one dir, main page]

[][src]Module cacache::get

Functions for reading from cache.

Structs

Get

File handle for reading from a content entry.

Functions

copy

Copies a cache entry by key to a specified location.

copy_hash

Copies a cache entry by integrity address to a specified location.

hash_exists

Returns true if the given hash exists in the cache.

info

Gets entry information and metadata for a certain key.

open

Opens a new file handle into the cache, looking it up in the index using key.

open_hash

Opens a new file handle into the cache, based on its integrity address.

read

Reads the entire contents of a cache file into a bytes vector, looking the data up by key.

read_hash

Reads the entire contents of a cache file into a bytes vector, looking the data up by its content address.