pub struct DefaultListFilesCache { /* private fields */ }Expand description
Collected files metadata for listing files. Cache will not invalided until user call remove or clear.
Trait Implementations§
source§impl CacheAccessor<Path, Arc<Vec<ObjectMeta>>> for DefaultListFilesCache
impl CacheAccessor<Path, Arc<Vec<ObjectMeta>>> for DefaultListFilesCache
type Extra = ObjectMeta
source§fn get_with_extra(
&self,
_k: &Path,
_e: &Self::Extra
) -> Option<Arc<Vec<ObjectMeta>>>
fn get_with_extra( &self, _k: &Path, _e: &Self::Extra ) -> Option<Arc<Vec<ObjectMeta>>>
Get value from cache.
source§fn put(
&self,
key: &Path,
value: Arc<Vec<ObjectMeta>>
) -> Option<Arc<Vec<ObjectMeta>>>
fn put( &self, key: &Path, value: Arc<Vec<ObjectMeta>> ) -> Option<Arc<Vec<ObjectMeta>>>
Put value into cache. Returns the old value associated with the key if there was one.
source§fn put_with_extra(
&self,
_key: &Path,
_value: Arc<Vec<ObjectMeta>>,
_e: &Self::Extra
) -> Option<Arc<Vec<ObjectMeta>>>
fn put_with_extra( &self, _key: &Path, _value: Arc<Vec<ObjectMeta>>, _e: &Self::Extra ) -> Option<Arc<Vec<ObjectMeta>>>
Put value into cache. Returns the old value associated with the key if there was one.
source§fn remove(&mut self, k: &Path) -> Option<Arc<Vec<ObjectMeta>>>
fn remove(&mut self, k: &Path) -> Option<Arc<Vec<ObjectMeta>>>
Remove an entry from the cache, returning value if they existed in the map.
source§fn contains_key(&self, k: &Path) -> bool
fn contains_key(&self, k: &Path) -> bool
Check if the cache contains a specific key.
source§impl Default for DefaultListFilesCache
impl Default for DefaultListFilesCache
source§fn default() -> DefaultListFilesCache
fn default() -> DefaultListFilesCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultListFilesCache
impl Send for DefaultListFilesCache
impl Sync for DefaultListFilesCache
impl Unpin for DefaultListFilesCache
impl UnwindSafe for DefaultListFilesCache
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