pub trait CacheStore {
// Required methods
fn get(&self, key: &str) -> VtaResult<Option<Vec<u8>>>;
fn put(&self, key: &str, bytes: &[u8]) -> VtaResult<()>;
}Expand description
A byte cache keyed by an opaque string (download/metadata caches).
Required Methods§
fn get(&self, key: &str) -> VtaResult<Option<Vec<u8>>>
fn put(&self, key: &str, bytes: &[u8]) -> VtaResult<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".