pub struct Builder<'a, KeyValue, V> { /* private fields */ }
Expand description

Builder for a Command::Set key-value operation.

Implementations

Set this key to expire after duration from now.

Set this key to expire at the provided time.

If the key already exists, do not update the currently set expiration.

Only set the value if this key already exists.

Only set the value if this key isn’t present.

Executes the Set operation, requesting the previous value be returned. If no change is made, None will be returned.

Executes the Set operation, requesting the previous value be returned. If no change is made, None will be returned.

Executes the operation using the configured options.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.