pub struct QuickMemoryClient<T>where
T: Serialize + DeserializeOwned + Debug + Eq + PartialEq + Hash + Send + Sync + Clone + 'static,{ /* private fields */ }Trait Implementations§
Source§impl<T> BaseClient<T> for QuickMemoryClient<T>
impl<T> BaseClient<T> for QuickMemoryClient<T>
Source§fn new(config: ClientConfig) -> Self
fn new(config: ClientConfig) -> Self
Creates a new instance of the client. Read more
Source§fn get(&mut self, key: &str) -> Result<Option<T>>
fn get(&mut self, key: &str) -> Result<Option<T>>
Get the value associated with a key. Read more
Source§fn set(&mut self, key: &str, value: T) -> Result<()>
fn set(&mut self, key: &str, value: T) -> Result<()>
Set the value associated with a key. Read more
Source§fn update(&mut self, key: &str, value: T, upsert: Option<bool>) -> Result<()>
fn update(&mut self, key: &str, value: T, upsert: Option<bool>) -> Result<()>
Update the value associated with a key. Read more
Source§fn delete(&mut self, key: &str) -> Result<()>
fn delete(&mut self, key: &str) -> Result<()>
Delete the value associated with a key. Read more
Source§fn exists(&mut self, key: &str) -> Result<bool>
fn exists(&mut self, key: &str) -> Result<bool>
Check if a key exists in the database. Read more
Source§fn get_many(&mut self, keys: &[&str]) -> Result<Option<Vec<T>>>
fn get_many(&mut self, keys: &[&str]) -> Result<Option<Vec<T>>>
Get multiple values associated with multiple keys. Read more
Source§fn set_many(&mut self, keys: &[&str], values: &[T]) -> Result<()>
fn set_many(&mut self, keys: &[&str], values: &[T]) -> Result<()>
Set multiple values associated with multiple keys. Read more
Auto Trait Implementations§
impl<T> Freeze for QuickMemoryClient<T>
impl<T> RefUnwindSafe for QuickMemoryClient<T>
impl<T> Send for QuickMemoryClient<T>
impl<T> Sync for QuickMemoryClient<T>
impl<T> Unpin for QuickMemoryClient<T>
impl<T> UnwindSafe for QuickMemoryClient<T>
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