pub struct SetCommand { /* private fields */ }Expand description
SET command builder
Implementations§
Source§impl SetCommand
impl SetCommand
Sourcepub fn only_if_not_exists(self) -> Self
pub fn only_if_not_exists(self) -> Self
Only set if key doesn’t exist (NX)
Sourcepub fn only_if_exists(self) -> Self
pub fn only_if_exists(self) -> Self
Only set if key exists (XX)
Trait Implementations§
Source§impl Command for SetCommand
impl Command for SetCommand
Source§fn command_name(&self) -> &str
fn command_name(&self) -> &str
Get the command name
Source§fn parse_response(&self, response: RespValue) -> RedisResult<Self::Output>
fn parse_response(&self, response: RespValue) -> RedisResult<Self::Output>
Parse the response into the output type
Source§impl PipelineCommand for SetCommand
impl PipelineCommand for SetCommand
Auto Trait Implementations§
impl Freeze for SetCommand
impl RefUnwindSafe for SetCommand
impl Send for SetCommand
impl Sync for SetCommand
impl Unpin for SetCommand
impl UnwindSafe for SetCommand
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