pub struct ClientResult;

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
Authenticates the current connection. Read more
This command controls the tracking of the keys in the next command executed by the connection, when tracking is enabled in OPTIN or OPTOUT mode. Read more
Returns the name of the current connection as set by [CLIENT SETNAME]. Read more
This command returns the client ID we are redirecting our tracking notifications to. Read more
The command just returns the ID of the current connection. Read more
The command returns information and statistics about the current client connection in a mostly human readable format. Read more
Closes a given clients connection based on a filter list Read more
Returns information and statistics about the client connections server in a mostly human readable format. Read more
sets the client eviction mode for the current connection. Read more
Connections control command able to suspend all the Redis clients for the specified amount of time (in milliseconds). Read more
Sometimes it can be useful for clients to completely disable replies from the Redis server. Read more
Assigns a name to the current connection. Read more
This command enables the tracking feature of the Redis server, that is used for server assisted client side caching. Read more
This command enables the tracking feature of the Redis server, that is used for server assisted client side caching. Read more
This command can unblock, from a different connection, a client blocked in a blocking operation, such as for instance BRPOP or XREAD or WAIT. Read more
Used to resume command processing for all clients that were paused by client_pause. Read more
Returns message. Read more
Switch to a different protocol, optionally authenticating and setting the connection’s name, or provide a contextual client report. Read more
Returns PONG if no argument is provided, otherwise return a copy of the argument as a bulk. Read more
Ask the server to close the connection. Read more
This command performs a full reset of the connection’s server-side context, mimicking the effect of disconnecting and reconnecting again. Read more
Select the Redis logical database having the specified zero-based numeric index. 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
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
Adds the specified elements to the specified HyperLogLog. Read more
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Read more
Merge N different HyperLogLogs into a single one. Read more
This command is the blocking variant of lmove. Read more
This command is the blocking variant of lmpop. Read more
This command is a blocking list pop primitive. Read more
This command is a blocking list pop primitive. 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
Subscribes the client to the specified channels. Read more
Subscribes the client to the given patterns. Read more
Posts a message to the given channel. Read more
Lists the currently active channels. Read more
Returns the number of unique patterns that are subscribed to by clients (that are performed using the PSUBSCRIBE command). Read more
Returns the number of subscribers (exclusive of clients subscribed to patterns) for the specified channels. Read more
Invoke the execution of a server-side Lua script. Read more
This is a read-only variant of the eval] command that cannot execute commands that modify data. Read more
Evaluate a script from the server’s cache by its SHA1 digest. Read more
This is a read-only variant of the evalsha command that cannot execute commands that modify data. Read more
Invoke a function. Read more
Invoke a function. Read more
Delete a library and all its functions. Read more
Return the serialized payload of loaded libraries. You can restore the serialized payload later with the function_restore command. Read more
Deletes all the libraries. Read more
Kill a function that is currently executing. Read more
Return information about the functions and libraries. Read more
Load a library to Redis. Read more
Restore libraries from the serialized payload. Read more
Return information about the function that’s currently running and information about the available execution engines. Read more
Set the debug mode for subsequent scripts executed with EVAL. Read more
Returns information about the existence of the scripts in the script cache. Read more
Flush the Lua scripts cache. Read more
Kills the currently executing EVAL script, assuming no write operation was yet performed by the script. Read more
Load a script into the scripts cache, without executing it. Read more
Return the ip and port number of the master with that name. Read more
Force a failover as if the master was not reachable, and without asking for agreement to other Sentinels (however a new version of the configuration will be published so that the other Sentinels will update their configurations). Read more
Debugging command that streams back every command processed by the Redis server. Read more
The command shows the available ACL categories if called without arguments. If a category name is given, the command shows all the Redis commands in the specified category. Read more
Delete all the specified ACL users and terminate all the connections that are authenticated with such users. Read more
Simulate the execution of a given command by a given user. Read more
Generates a password starting from /dev/urandom if available, otherwise (in systems without /dev/urandom) it uses a weaker system that is likely still better than picking a weak password by hand. Read more
The command returns all the rules defined for an existing ACL user. Read more
The command shows the currently active ACL rules in the Redis server. Read more
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will reload the ACLs from the file, replacing all the current ACL rules with the ones defined in the file. Read more
The command shows a list of recent ACL security events Read more
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will save the currently defined ACLs from the server memory to the ACL file. Read more
Create an ACL user with the specified rules or modify the rules of an existing user. Read more
The command shows a list of all the usernames of the currently configured users in the Redis ACL system. Read more
Return the username the current connection is authenticated with. Read more
Return an array with details about every Redis command. Read more
Number of total commands in this Redis server. Read more
Number of total commands in this Redis server. Read more
A helper command to let you find the keys from a full Redis command. Read more
A helper command to let you find the keys from a full Redis command together with flags indicating what each key is used for. Read more
Return an array with details about multiple Redis command. Read more
Return an array of the server’s command names based on optional filters Read more
Used to read the configuration parameters of a running Redis server. Read more
Resets the statistics reported by Redis using the info command. Read more
Rewrites the redis.conf file the server was started with, applying the minimal changes needed to make it reflect the configuration currently used by the server, which may be different compared to the original one because of the use of the config_set command. Read more
Used in order to reconfigure the server at run time without the need to restart Redis. Read more
Return the number of keys in the currently-selected database. Read more
This command will start a coordinated failover between the currently-connected-to master and one of its replicas. 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
This command returns information and statistics about the server in a format that is simple to parse by computers and easy to read by humans. Read more
Return the UNIX TIME of the last DB save executed with success. Read more
This command reports about different latency-related issues and advises about possible remedies. Read more
Produces an ASCII-art style graph for the specified event. Read more
This command reports a cumulative distribution of latencies in the format of a histogram for each of the specified command names. Read more
This command returns the raw data of the event’s latency spikes time series. Read more
This command reports the latest latency events logged. Read more
This command resets the latency spikes time series of all, or only some, events. Read more
The LOLWUT command displays the Redis version: however as a side effect of doing so, it also creates a piece of generative computer art that is different with each version of Redis. Read more
This command reports about different memory-related issues that the Redis server experiences, and advises about possible remedies. Read more
This command provides an internal statistics report from the memory allocator. Read more
This command attempts to purge dirty pages so these can be reclaimed by the allocator. Read more
This command returns information about the memory usage of the server. Read more
This command reports the number of bytes that a key and its value require to be stored in RAM. Read more
Returns information about the modules loaded to the server. Read more
Loads a module from a dynamic library at runtime. Read more
Unloads a module. Read more
This command can change the replication settings of a replica on the fly. Read more
Provide information on the role of a Redis instance in the context of replication, by returning if the instance is currently a master, slave, or sentinel. Read more
This command performs a synchronous save of the dataset producing a point in time snapshot of all the data inside the Redis instance, in the form of an RDB file. Read more
Shutdown the server Read more
This command returns entries from the slow log in chronological order. Read more
This command returns the current number of entries in the slow log. Read more
This command resets the slow log, clearing all entries in it. Read more
This command swaps two Redis databases, so that immediately all the clients connected to a given database will see the data of the other database, and the other way around. Read more
The TIME command returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second. 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
This command is the blocking variant of zmpop. Read more
This command is the blocking variant of zpopmax. Read more
This command is the blocking variant of zpopmin. 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
The XACK command removes one or multiple messages from the Pending Entries List (PEL) of a stream consumer group Read more
Appends the specified stream entry to the stream at the specified key. Read more
This command transfers ownership of pending stream entries that match the specified criteria. Read more
In the context of a stream consumer group, this command changes the ownership of a pending message, so that the new owner is the consumer specified as the command argument. Read more
Removes the specified entries from a stream, and returns the number of entries deleted. Read more
This command creates a new consumer group uniquely identified by for the stream stored at . Read more
Create a consumer named consumername in the consumer group groupname`` of the stream that's stored at key. Read more
The XGROUP DELCONSUMER command deletes a consumer from the consumer group. Read more
The XGROUP DESTROY command completely destroys a consumer group. Read more
Set the last delivered ID for a consumer group. Read more
This command returns the list of consumers that belong to the groupname consumer group of the stream stored at key. Read more
This command returns the list of consumers that belong to the groupname consumer group of the stream stored at key. Read more
This command returns information about the stream stored at key. Read more
Returns the number of entries inside a stream. Read more
The XPENDING command is the interface to inspect the list of pending messages. Read more
The XPENDING command is the interface to inspect the list of pending messages. Read more
The command returns the stream entries matching a given range of IDs. Read more
Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller. Read more
The XREADGROUP command is a special version of the xread command with support for consumer groups. Read more
This command is exactly like xrange, but with the notable difference of returning the entries in reverse order, and also taking the start-end range in reverse order Read more
XTRIM trims the stream by evicting older entries (entries with lower IDs) if needed. 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
Marks the given keys to be watched for conditional execution of a transaction. Read more
Flushes all the previously watched keys for a transaction. 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