pub struct L2Cache { /* private fields */ }Expand description
L2 persistent cache
Implementations§
Source§impl L2Cache
impl L2Cache
Sourcepub fn get(&self, namespace: &str, key: &str, env: &str) -> Result<ConfigEntry>
pub fn get(&self, namespace: &str, key: &str, env: &str) -> Result<ConfigEntry>
Get an entry from the cache
Sourcepub fn put(&self, entry: &ConfigEntry) -> Result<()>
pub fn put(&self, entry: &ConfigEntry) -> Result<()>
Put an entry into the cache
Auto Trait Implementations§
impl Freeze for L2Cache
impl RefUnwindSafe for L2Cache
impl Send for L2Cache
impl Sync for L2Cache
impl Unpin for L2Cache
impl UnwindSafe for L2Cache
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