pub struct BuildCache { /* private fields */ }Expand description
Build cache for storing and retrieving built artifacts
Implementations§
Source§impl BuildCache
impl BuildCache
Sourcepub fn has(&self, chunk_id: &str) -> CadiResult<bool>
pub fn has(&self, chunk_id: &str) -> CadiResult<bool>
Check if a chunk exists in cache
Sourcepub fn remove(&self, chunk_id: &str) -> CadiResult<bool>
pub fn remove(&self, chunk_id: &str) -> CadiResult<bool>
Remove a chunk from cache
Sourcepub fn stats(&self) -> CadiResult<CacheStats>
pub fn stats(&self) -> CadiResult<CacheStats>
Get cache statistics
Sourcepub fn gc(&self, aggressive: bool) -> CadiResult<GcResult>
pub fn gc(&self, aggressive: bool) -> CadiResult<GcResult>
Run garbage collection on the cache
Sourcepub fn clear(&self) -> CadiResult<()>
pub fn clear(&self) -> CadiResult<()>
Clear all cached chunks
Auto Trait Implementations§
impl Freeze for BuildCache
impl RefUnwindSafe for BuildCache
impl Send for BuildCache
impl Sync for BuildCache
impl Unpin for BuildCache
impl UnwindSafe for BuildCache
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