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.
Currently, the following options are supported:
- EX
seconds – Set the specified expire time, in seconds.
- PX
milliseconds – Set the specified expire time, in milliseconds.
Create a new Set command which sets key to value.
If expire is Some, the value should expire after the specified
duration.
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Instruments this type with the
current Span, returning an
Instrumented wrapper.
Read more
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.