pub struct LocalCache { /* private fields */ }Expand description
Filesystem-based cache store.
Each entry is stored as a JSON file named by the cache key’s hex. Suitable for persistent local caching across process restarts.
Implementations§
Trait Implementations§
Source§impl CacheStore for LocalCache
impl CacheStore for LocalCache
fn get(&self, key: &CacheKey) -> Result<Option<Value>>
fn put(&self, key: &CacheKey, value: &Value) -> Result<()>
fn exists(&self, key: &CacheKey) -> Result<bool>
fn remove(&self, key: &CacheKey) -> Result<()>
fn metadata(&self, key: &CacheKey) -> Result<Option<EntryMeta>>
Auto Trait Implementations§
impl Freeze for LocalCache
impl RefUnwindSafe for LocalCache
impl Send for LocalCache
impl Sync for LocalCache
impl Unpin for LocalCache
impl UnsafeUnpin for LocalCache
impl UnwindSafe for LocalCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more