pub struct Transaction { /* private fields */ }

Implementations

Trait Implementations

Send an arbitrary command to the server. Read more

This command copies the value stored at the source key to the destination key. Read more

Removes the specified keys. A key is ignored if it does not exist. Read more

Returns if keys exist. Read more

Set a timeout on key in seconds Read more

EXPIREAT has the same effect and semantic as EXPIRE, but instead of specifying the number of seconds representing the TTL (time to live), it takes an absolute Unix timestamp (seconds since January 1, 1970) Read more

Returns the absolute Unix timestamp (since January 1, 1970) in seconds at which the given key will expire. Read more

Move key from the currently selected database to the specified destination database. Read more

Remove the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated). Read more

This command works exactly like EXPIRE but the time to live of the key is specified in milliseconds instead of seconds. Read more

PEXPIREAT has the same effect and semantic as EXPIREAT, but the Unix time at which the key will expire is specified in milliseconds instead of seconds. Read more

PEXPIRETIME has the same semantic as EXPIRETIME, but returns the absolute Unix expiration timestamp in milliseconds instead of seconds. Read more

Returns the remaining time to live of a key that has a timeout. Read more

Returns the remaining time to live of a key that has a timeout. Read more

Returns the string representation of the type of the value stored at key. Read more

Removes the specified fields from the hash stored at key. Read more

Returns if field is an existing field in the hash stored at key. Read more

Returns the value associated with field in the hash stored at key. Read more

Returns all fields and values of the hash stored at key. Read more

Increments the number stored at field in the hash stored at key by increment. Read more

Increment the specified field of a hash stored at key, and representing a floating point number, by the specified increment. Read more

Returns all field names in the hash stored at key. Read more

Returns the number of fields contained in the hash stored at key. Read more

Returns the values associated with the specified fields in the hash stored at key. Read more

When called with just the key argument, return a random field from the hash value stored at key. Read more

Iterates fields of Hash types and their associated values. Read more

Sets field in the hash stored at key to value. Read more

Sets field in the hash stored at key to value, only if field does not yet exist. Read more

Returns the string length of the value associated with field in the hash stored at key. Read more

list of values in the hash, or an empty list when key does not exist. Read more

Insert all the specified values at the head of the list stored at key Read more

Removes and returns the first elements of the list stored at key. Read more

Insert all the specified values at the tail of the list stored at key Read more

Removes and returns the first elements of the list stored at key. Read more

Delete all the keys of the currently selected DB. Read more

Delete all the keys of all the existing databases, not just the currently selected one. Read more

Add the specified members to the set stored at key. Read more

Returns the set cardinality (number of elements) of the set stored at key. Read more

Returns the members of the set resulting from the difference between the first set and all the successive sets. Read more

This command is equal to sdiff, but instead of returning the resulting set, it is stored in destination. Read more

Returns the members of the set resulting from the intersection of all the given sets. Read more

This command is similar to sinter, but instead of returning the result set, it returns just the cardinality of the result. Read more

This command is equal to sinter, but instead of returning the resulting set, it is stored in destination. Read more

Returns if member is a member of the set stored at key. Read more

Returns all the members of the set value stored at key. Read more

Returns whether each member is a member of the set stored at key. Read more

Move member from the set at source to the set at destination. Read more

Removes and returns one or more random members from the set value store at key. Read more

Removes and returns one or more random members from the set value store at key. Read more

Remove the specified members from the set stored at key. Read more

Iterates elements of Sets types. Read more

Returns the members of the set resulting from the union of all the given sets. Read more

This command is equal to sunion, but instead of returning the resulting set, it is stored in destination. Read more

If key already exists and is a string, this command appends the value at the end of the string. If key does not exist it is created and set as an empty string, so APPEND will be similar to SET in this special case. Read more

Decrements the number stored at key by one. Read more

Decrements the number stored at key by one. Read more

Get the value of key. Read more

Get the value of key and delete the key. Read more

Get the value of key and optionally set its expiration. GETEX is similar to GET, but is a write command with additional options. Read more

Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive). Read more

Atomically sets key to value and returns the old value stored at key. Returns an error when key exists but does not hold a string value. Any previous time to live associated with the key is discarded on successful SET operation. Read more

Increments the number stored at key by one. Read more

Increments the number stored at key by increment. Read more

Increment the string representing a floating point number stored at key by the specified increment. By using a negative increment value, the result is that the value stored at the key is decremented (by the obvious properties of addition). If the key does not exist, it is set to 0 before performing the operation. An error is returned if one of the following conditions occur: Read more

The LCS command implements the longest common subsequence algorithm Read more

Returns the values of all specified keys. Read more

Sets the given keys to their respective values. Read more

Sets the given keys to their respective values. MSETNX will not perform any operation at all even if just a single key already exists. Read more

Works exactly like setex with the sole difference that the expire time is specified in milliseconds instead of seconds. Read more

Set key to hold the string value. Read more

Set key to hold the string value. Read more

Set key to hold the string value and set key to timeout after a given number of seconds. Read more

Set key to hold string value if key does not exist. Read more

Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value. Read more

Returns the length of the string value stored at key. Read more

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.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more