[−][src]Module cacache::get
Functions for reading from cache.
Structs
| AsyncGet | File handle for asynchronously reading from a content entry. |
| SyncGet | 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. |
| copy_hash_sync | Copies a cache entry by integrity address to a specified location. |
| copy_sync | Copies a cache entry by key to a specified location. |
| data | Reads the entire contents of a cache file into a bytes vector, looking the data up by key. |
| data_hash | Reads the entire contents of a cache file into a bytes vector, looking the data up by its content address. |
| data_hash_sync | Reads the entire contents of a cache file synchronously into a bytes vector, looking the data up by its content address. |
| data_sync | Reads the entire contents of a cache file synchronously into a bytes vector, looking the data up by key. |
| entry | Gets entry information and metadata for a certain key. |
| entry_sync | Gets entry information and metadata for a certain key. |
| hash_exists | Returns true if the given hash exists in the cache. |
| hash_exists_sync | Returns true if the given hash exists in the cache. |
| open | Opens a new file handle into the cache, looking it up in the index using
|
| open_hash | Opens a new file handle into the cache, based on its integrity address. |
| open_hash_sync | Opens a new synchronous file handle into the cache, based on its integrity address. |
| open_sync | Opens a new synchronous file handle into the cache, looking it up in the
index using |