pub struct RepositoryCache { /* private fields */ }Implementations§
Source§impl RepositoryCache
impl RepositoryCache
pub fn new() -> Result<Self>
pub fn with_config(max_size: u64, max_age_seconds: u64) -> Result<Self>
pub fn generate_cache_key(url: &str, branch: Option<&str>) -> String
pub fn get(&mut self, key: &str) -> Result<Option<CacheEntry>>
pub fn put(&mut self, key: String, entry: CacheEntry) -> Result<()>
pub fn check_commit(&self, key: &str, current_commit: &str) -> CacheCommitStatus
pub fn remove(&mut self, key: &str) -> Result<()>
pub fn clear_all(&mut self) -> Result<()>
pub fn get_stats(&self) -> CacheStats
Auto Trait Implementations§
impl Freeze for RepositoryCache
impl RefUnwindSafe for RepositoryCache
impl Send for RepositoryCache
impl Sync for RepositoryCache
impl Unpin for RepositoryCache
impl UnsafeUnpin for RepositoryCache
impl UnwindSafe for RepositoryCache
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