Enum kramer::StringCommand
source · pub enum StringCommand<S, V> {
Set(Arity<(S, V)>, Option<Duration>, Insertion),
Get(Arity<S>),
Len(S),
Decr(S, usize),
Incr(S, i64),
Append(S, V),
}
Expand description
The StringCommand
enum represents the most basic, key-value commands that
redis offers; top-level keys with values being either strings or numbers.
Variants§
Set(Arity<(S, V)>, Option<Duration>, Insertion)
Sets the value of a key.
Get(Arity<S>)
Returns the value of a key(s).
Len(S)
Returns the length of a key.
Decr(S, usize)
Decrements the value stored at a key.
Incr(S, i64)
Increments the value stored at a key.
Append(S, V)
Appends a value to a string.
Trait Implementations§
Auto Trait Implementations§
impl<S, V> RefUnwindSafe for StringCommand<S, V>where S: RefUnwindSafe, V: RefUnwindSafe,
impl<S, V> Send for StringCommand<S, V>where S: Send, V: Send,
impl<S, V> Sync for StringCommand<S, V>where S: Sync, V: Sync,
impl<S, V> Unpin for StringCommand<S, V>where S: Unpin, V: Unpin,
impl<S, V> UnwindSafe for StringCommand<S, V>where S: UnwindSafe, V: UnwindSafe,
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