pub struct Set { /* private fields */ }
Expand description
Set key
to hold the string value
.
If key
already holds a value, it is overwritten, regardless of its type.
Any previous time to live associated with the key is discarded on successful
SET operation.
§Options
Currently, the following options are supported:
- EX
seconds
– Set the specified expire time, in seconds. - PX
milliseconds
– Set the specified expire time, in milliseconds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Set
impl RefUnwindSafe for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
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