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§
source§impl Kvdb for MenoryDb
impl Kvdb for MenoryDb
fn get<'life0, 'async_trait>( &'life0 self, key: Key ) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn get_all<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = HashMap<Key, Value>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn get_with_prefix<'life0, 'async_trait>( &'life0 self, prefix: Key ) -> Pin<Box<dyn Future<Output = HashMap<Key, Value>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn set<'life0, 'async_trait>( &'life0 self, key: Key, value: Value ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn set_many<'life0, 'async_trait>( &'life0 self, data: HashMap<Key, Value> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn delete<'life0, 'async_trait>( &'life0 self, key: Key ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn delete_all<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn delete_with_prefix<'life0, 'async_trait>( &'life0 self, prefix: Key ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
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