pub struct Transaction { /* private fields */ }

Implementations

Trait Implementations

Count the number of set bits (population counting) in a string. Read more

The command treats a Redis string as an array of bits, and is capable of addressing specific integer fields of varying bit widths and arbitrary non (necessary) aligned offset. Read more

Read-only variant of the BITFIELD command. It is like the original BITFIELD but only accepts GET subcommand and can safely be used in read-only replicas. Read more

Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key. Read more

Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key. Read more

Returns the bit value at offset in the string value stored at key. Read more

Sets or clears the bit at offset in the string value stored at key. Read more

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

Serialize the value stored at key in a Redis-specific format and return it to the user. 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

Returns all keys matching pattern. Read more

Atomically transfer a key or a collection of keys from a source Redis instance to a destination Redis instance. Read more

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

Returns the internal encoding for the Redis object stored at key Read more

This command returns the logarithmic access frequency counter of a Redis object stored at key. Read more

This command returns the time in seconds since the last access to the value stored at key. Read more

This command returns the reference count of the stored at key. 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

Return a random key from the currently selected database. Read more

Renames key to newkey. Read more

Renames key to newkey if newkey does not yet exist. It returns an error when key does not exist. Read more

Create a key associated with a value that is obtained by deserializing the provided serialized value (obtained via DUMP). Read more

Iterates the set of keys in the currently selected Redis database. Read more

Returns the elements contained in the list, set or sorted set at key. Read more

Stores the elements contained in the list, set or sorted set at key. Read more

Read-only variant of the SORT command. Read more

Alters the last access time of a key(s). A key is ignored if it does not exist. 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

This command is very similar to DEL: it removes the specified keys. Read more

This command blocks the current client until all the previous write commands are successfully transferred and acknowledged by at least the specified number of replicas. Read more

Adds the specified geospatial items (longitude, latitude, name) to the specified key. Read more

Return the distance between two members in the geospatial index represented by the sorted set. Read more

Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using geoadd). Read more

Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key. Read more

Return the members of a sorted set populated with geospatial information using geoadd, which are within the borders of the area specified by a given shape. Read more

Return the members of a sorted set populated with geospatial information using geoadd, which are within the borders of the area specified by a given shape. Read more

This command is like geosearch, but stores the result in destination 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

return random fields from the hash value stored at key. Read more

return random fields from the hash value stored at key. Read more

return random fields 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

Returns the element at index index in the list stored at key. Read more

Inserts element in the list stored at key either before or after the reference value pivot. Read more

Inserts element in the list stored at key either before or after the reference value pivot. Read more

Atomically returns and removes the first/last element (head/tail depending on the wherefrom argument) of the list stored at source, and pushes the element at the first/last element (head/tail depending on the whereto argument) of the list stored at destination. Read more

Pops one or more elements from the first non-empty list key from the list of provided key names. Read more

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

Returns the index of matching elements inside a Redis list. Read more

Returns the index of matching elements inside a Redis list. Read more

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

Inserts specified values at the head of the list stored at key, only if key already exists and holds a list. Read more

Returns the specified elements of the list stored at key. Read more

Removes the first count occurrences of elements equal to element from the list stored at key. Read more

Sets the list element at index to element. Read more

Trim an existing list so that it will contain only the specified range of elements specified. 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

Inserts specified values at the tail of the list stored at key, only if key already exists and holds a list. 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

Adds all the specified members with the specified scores to the sorted set stored at key. Read more

In this mode ZADD acts like ZINCRBY. Only one score-element pair can be specified in this mode. Read more

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

Returns the number of elements in the sorted set at key with a score between min and max. Read more

This command is similar to zdiffstore, but instead of storing the resulting sorted set, it is returned to the client. Read more

This command is similar to zdiffstore, but instead of storing the resulting sorted set, it is returned to the client. Read more

Computes the difference between the first and all successive input sorted sets and stores the result in destination. Read more

Increments the score of member in the sorted set stored at key by increment. Read more

This command is similar to zinterstore, but instead of storing the resulting sorted set, it is returned to the client. Read more

This command is similar to zinterstore, but instead of storing the resulting sorted set, it is returned to the client. Read more

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

Computes the intersection of numkeys sorted sets given by the specified keys, and stores the result in destination. Read more

When all the elements in a sorted set are inserted with the same score, in order to force lexicographical ordering, this command returns the number of elements in the sorted set at key with a value between min and max. Read more

Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of key names. Read more

Returns the scores associated with the specified members in the sorted set stored at key. Read more

Removes and returns up to count members with the highest scores in the sorted set stored at key. Read more

Removes and returns up to count members with the lowest scores in the sorted set stored at key. Read more

Return a random element from the sorted set value stored at key. Read more

Return random elements from the sorted set value stored at key. Read more

Return random elements with their scores from the sorted set value stored at key. Read more

Returns the specified range of elements in the sorted set stored at key. Read more

Returns the specified range of elements in the sorted set stored at key. Read more

This command is like zrange, but stores the result in the dst destination key. Read more

Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high. Read more

Removes the specified members from the sorted set stored at key. Read more

When all the elements in a sorted set are inserted with the same score, in order to force lexicographical ordering, this command removes all elements in the sorted set stored at key between the lexicographical range specified by min and max. Read more

Removes all elements in the sorted set stored at key with rank between start and stop. Read more

Removes all elements in the sorted set stored at key with a score between min and max (inclusive). Read more

Returns the rank of member in the sorted set stored at key, with the scores ordered from high to low. Read more

Iterates elements of Sorted Set types and their associated scores. Read more

Returns the score of member in the sorted set at key. Read more

This command is similar to zunionstore, but instead of storing the resulting sorted set, it is returned to the client. Read more

This command is similar to zunionstore, but instead of storing the resulting sorted set, it is returned to the client. Read more

Computes the unionsection of numkeys sorted sets given by the specified keys, and stores the result 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

The LCS command implements the longest common subsequence algorithm 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 wit GET option enforced 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