Struct ntex_redis::cmd::commands::SetCommand [−][src]
pub struct SetCommand { /* fields omitted */ }Implementations
impl SetCommand[src]
impl SetCommand[src]pub fn expire_secs(self, secs: i64) -> Self[src]
Set the specified expire time, in seconds.
pub fn expire_millis(self, secs: i64) -> Self[src]
Set the specified expire time, in milliseconds.
pub fn if_exists(self) -> Self[src]
Only set the key if it already exist.
pub fn if_not_exists(self) -> Self[src]
Only set the key if it does not already exist.
pub fn keepttl(self) -> Self[src]
Retain the time to live associated with the key.
Trait Implementations
impl Command for SetCommand[src]
impl Command for SetCommand[src]Auto Trait Implementations
impl RefUnwindSafe for SetCommand
impl RefUnwindSafe for SetCommandimpl Send for SetCommand
impl Send for SetCommandimpl Sync for SetCommand
impl Sync for SetCommandimpl Unpin for SetCommand
impl Unpin for SetCommandimpl UnwindSafe for SetCommand
impl UnwindSafe for SetCommandBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self