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.