pub struct QuickClient<T>where
T: Serialize + DeserializeOwned + Debug + Eq + PartialEq + Hash + Send + Sync + Clone + 'static,{ /* private fields */ }Trait Implementations§
Source§impl<T> BaseClient<T> for QuickClient<T>
impl<T> BaseClient<T> for QuickClient<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
Source§impl<T> Clone for QuickClient<T>
impl<T> Clone for QuickClient<T>
Source§fn clone(&self) -> QuickClient<T>
fn clone(&self) -> QuickClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for QuickClient<T>
impl<T> RefUnwindSafe for QuickClient<T>
impl<T> Send for QuickClient<T>
impl<T> Sync for QuickClient<T>
impl<T> Unpin for QuickClient<T>
impl<T> UnwindSafe for QuickClient<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