Enum rustis::commands::SetExpiration
source · pub enum SetExpiration {
None,
Ex(u64),
Px(u64),
Exat(u64),
Pxat(u64),
}
Expand description
Expiration option for the set_with_options
command
Variants§
None
No expiration
Ex(u64)
Set the specified expire time, in seconds.
Px(u64)
Set the specified expire time, in milliseconds.
Exat(u64)
Set the specified Unix time at which the key will expire, in seconds.
Pxat(u64)
Set the specified Unix time at which the key will expire, in milliseconds.