Struct async_memorydb::MenoryDb
source · pub struct MenoryDb { /* private fields */ }
Implementations§
source§impl MenoryDb
impl MenoryDb
pub async fn get(&self, key: Key) -> Option<Value>
pub async fn get_all(&self) -> HashMap<Key, Value>
pub async fn get_with_prefix(&self, prefix: Key) -> HashMap<Key, Value>
pub async fn set(&self, key: Key, value: Value)
pub async fn set_many(&self, data: HashMap<Key, Value>)
pub async fn delete(&self, key: Key)
pub async fn delete_all(&self)
pub async fn delete_with_prefix(&self, prefix: Key)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MenoryDb
impl Send for MenoryDb
impl Sync for MenoryDb
impl Unpin for MenoryDb
impl UnwindSafe for MenoryDb
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