Struct ntex_redis::cmd::commands::SetCommand
source · pub struct SetCommand { /* private fields */ }
Implementations§
source§impl SetCommand
impl SetCommand
sourcepub fn expire_secs(self, secs: i64) -> Self
pub fn expire_secs(self, secs: i64) -> Self
Set the specified expire time, in seconds.
sourcepub fn expire_millis(self, secs: i64) -> Self
pub fn expire_millis(self, secs: i64) -> Self
Set the specified expire time, in milliseconds.
sourcepub fn if_not_exists(self) -> Self
pub fn if_not_exists(self) -> Self
Only set the key if it does not already exist.
Trait Implementations§
Auto Trait Implementations§
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