Expand description
The structs and enums used by the Redis client.
Structs§
- Configuration options for backpressure features in the client.
- A client and pool builder interface.
- Cluster
Info i-clusterA parsed response from theCLUSTER INFOcommand. - The cached view of the cluster used by the client to route commands to the correct cluster nodes.
- Configuration options related to the creation or management of TCP connection.
- Configuration for custom redis commands, primarily used for interacting with third party modules or extensions.
- Database
Memory Stats i-memoryThe parsed result of the MEMORY STATS command for a specific database. - FtAggregate
Options i-redisearchArguments to theFT.AGGREGATEcommand. - FtAlter
Options i-redisearchArguments toFT.ALTER. - FtCreate
Options i-redisearchArguments forFT.CREATE. - FtSearch
Options i-redisearchArguments toFT.SEARCH. - Function
i-scriptsAn individual function within a Library. - GeoPosition
i-geoA struct describing the longitude and latitude coordinates of a GEO command. - GeoRadius
Info i-geoA typed struct representing the full output of the GEORADIUS (or similar) command. - GeoValue
i-geoA struct describing the value inside a GEO data structure. - GroupBy
i-time-seriesA struct representingGROUPBY label REDUCE reducerin commands such asTS.MRANGE. - The result of a HSCAN operation.
- Invalidation
i-clientandi-trackingA client tracking invalidation message from the provided server. - An event on the publish-subscribe interface describing a keyspace notification.
- Library
i-scriptsA helper struct for interacting with libraries and functions. - Memory
Stats i-memoryThe parsed result of the MEMORY STATS command. - A publish-subscribe message.
- Multiple
GeoValues i-geoA convenience struct for commands that take one or more GEO values. - A convenience struct for functions that take one or more hash slot values.
- MultipleI
Ds i-streamsOne or more IDs for elements in a stream. - Convenience struct for commands that take 1 or more keys.
- Multiple
Ordered Pairs i-streamsOne or more ordered key-value pairs, typically used as an argument forXADD. - Multiple
Weights i-sorted-setsConvenience struct forZINTERSTOREandZUNIONSTOREwhen accepting 1 or moreweightsarguments. - Multiple
Zadd Values i-sorted-setsConvenience struct for theZADDcommand to accept 1 or more(score, value)arguments. - Options to configure or overwrite for individual commands.
- Configuration options that can affect the performance of the client.
- Range
Aggregation i-time-seriesA struct representing[ALIGN align] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]in commands such asTS.MRANGE. - Configuration options for a
RedisClient. - A key in Redis.
- A map of
(RedisKey, RedisValue)pairs. - Replica
Config replicasConfiguration options for replica node connections. - The result of a SSCAN operation.
- The result of a SCAN operation.
- Script
i-scriptsAn interface for caching and running lua scripts. - Search
Field i-redisearchA search field with an optional property. - Search
Filter i-redisearchArguments forFILTERinFT.SEARCH. - Search
GeoFilter i-redisearchArguments forGEOFILTERinFT.SEARCH. - Search
Highlight i-redisearchArguments used inHIGHLIGHTvalues. - Search
Parameter i-redisearchArguments forPARAMSinFT.AGGREGATE. - Search
Reducer i-redisearchREDUCEarguments inFT.AGGREGATE. - Search
Schema i-redisearchArguments forSCHEMAinFT.CREATE. - Search
Sort By i-redisearchArguments forSORTBYinFT.SEARCH. - Search
Summarize i-redisearchArguments used inSUMMARIZEvalues. - Sentinel
Config sentinel-clientConfiguration options for sentinel clients. - State necessary to identify or connect to a server.
- A slot range and associated cluster node information from the
CLUSTER SLOTScommand. - The output of an entry in the slow queries log.
- Stats
metricsStats describing a distribution of samples. - TCP configuration options.
- TlsConfig
enable-rustlsorenable-native-tlsorenable-rustls-ringTLS configuration for a client. - Tracing
Config partial-tracingConfiguration options for tracing. - Configuration options used to detect potentially unresponsive connections.
- SemVer version as defined by https://semver.org.
- With
Cursor i-redisearchArguments forWITHCURSORinFT.AGGREGATE. - XCap
i-streamsStream cap arguments forXADD,XTRIM, etc. - XPending
Args i-streamsA struct representing the trailing optional arguments to XPENDING. - ZRange
i-sorted-setsA wrapper struct for a range bound in a sorted set command. - The result of a ZSCAN operation.
Enums§
- Aggregate
Operation i-redisearchAn aggregation operation used inFT.AGGREGATE. - Aggregate options for the zinterstore (and related) commands.
- Aggregator
i-time-seriesAn aggregation policy to use with certain timeseries commands. - Backpressure policies to apply when the max number of in-flight commands is reached on a connection.
- Describes how the client should respond when a command is sent while the client is in a blocked state from a blocking command.
- Bucket
Timestamp i-time-seriesABUCKETTIMESTAMPargument in commands such asTS.MRANGE. - Client
Kill Filter i-clientFilters provided to the CLIENT KILL command. - Client
Kill Type i-clientThe type of clients to close. - Client
Pause Kind i-clientFilters for the CLIENT PAUSE command. - Client
Reply Flag i-clientArguments for the CLIENT REPLY command. - The state of the underlying connection to the Redis server.
- Arguments to the CLIENT UNBLOCK command.
- A policy that determines how clustered clients initially connect to and discover other cluster nodes.
- Cluster
Failover Flag i-clusterOptions for the CLUSTER FAILOVER command. - A cluster hashing policy.
- Cluster
Reset Flag i-clusterFlags for the CLUSTER RESET command. - Cluster
SetSlot State i-clusterFlags for the CLUSTER SETSLOT command. - Cluster
State i-clusterThe state of the cluster from theCLUSTER INFOcommand. - An enum describing the possible ways in which a Redis cluster can change state.
- Duplicate
Policy i-time-seriesThe duplicate policy used with certain timeseries commands. - Encoding
i-time-seriesEncoding arguments for certain timeseries commands. - Expiration options for the set command.
- Options for certain expiration commands (
PEXPIRE, etc). - The policy type for the FUNCTION RESTORE command.
- Function
Flag i-scripts - GeoUnit
i-geoUnits for the GEO DIST command. - GetLabels
i-time-seriesArguments equivalent toWITHLABELS | SELECTED_LABELS label...in various time series GET functions. - GetTimestamp
i-time-seriesA timestamp query used in commands such asTS.MRANGE. - Index
Kind i-redisearchIndex arguments forFT.CREATE. - Options for the info command.
- LMove
Direction i-listsThe direction to move elements in a *LMOVE command. - List
Location i-listsLocation flag for theLINSERTcommand. - Load
i-redisearchArguments toLOADinFT.AGGREGATE. - The kind of pubsub message.
- Ordering
i-sorted-setsOrdering options for the ZADD (and related) commands. - Reconnect
Error custom-reconnect-errorsSpecial errors that can trigger reconnection logic, which can also retry the failing command if possible. - The type of reconnection policy to use. This will apply to every connection used by the client.
- A value used in a Redis command.
- The kind of value from Redis.
- Reducer
i-time-seriesAREDUCERargument in commands such asTS.MRANGE. - Reducer
Func i-redisearchGROUPBYreducer functions. - The RESP version used in the
HELLOrequest. - The types of values supported by the type command.
- Flags for the SCRIPT DEBUG command.
- Search
Schema Kind i-redisearchOne of the available schema types used withFT.CREATEorFT.ALTER. - Sentinel
Failure Kind sentinel-clientArguments for theSENTINEL SIMULATE-FAILUREcommand. - Connection configuration for the Redis server.
- Options for the set command.
- Arguments passed to the SHUTDOWN command.
- The sort order for redis commands that take or return a sorted list.
- Spellcheck
Terms i-redisearchArguments toTERMSinFT.SPELLCHECK, - An argument representing a string or number.
- Timestamp
i-time-seriesA timestamp used in most timeseries commands. - TlsConnector
enable-rustlsorenable-native-tlsorenable-rustls-ringAn enum for interacting with various TLS libraries and interfaces. - TlsHost
Mapping enable-rustlsorenable-native-tlsorenable-rustls-ringAn optional enum used to describe how the client should modify or map IP addresses and hostnames in a clustered deployment. - Toggle
i-clientandi-trackingAnON|OFFflag used with client tracking commands. - XCap
Kind i-streamsThe MAXLEN or MINID argument for a stream cap. - XCap
Trim i-streamsRepresentation for the “=” or “~” operator inXADD, etc. - XID
i-streamsStream ID arguments forXADD,XREAD, etc. - ZCmp
i-sorted-setsMIN|MAXarguments forBZMPOP, etc. - ZRange
Bound i-sorted-setsAn index, score, lexicographical, or +|-|+inf|-inf range bound for the ZRANGE command. - ZRange
Kind i-sorted-setsThe type of range interval bound. - ZSort
i-sorted-setsOptions for the ZRANGE (and related) commands.
Constants§
- The default amount of jitter when waiting to reconnect.
Traits§
- Credential
Provider credential-providerA trait that can be used to override the credentials used in eachAUTHorHELLOcommand. - A trait used to convert various forms of RedisValue into different types.
- A trait used to convert RedisKey values to various types.
- Host
Mapping enable-rustlsorenable-native-tlsorenable-rustls-ringA trait used for mapping IP addresses to hostnames when processing theCLUSTER SLOTSresponse. - Replica
Filter replicasAn interface used to filter the list of available replica nodes. - Resolve
dnsA trait that can be used to override DNS resolution logic. - An interface for interacting with the results of a scan operation.
Type Aliases§
- The ANY flag used on certain GEO commands.
- The result from any of the
connectfunctions showing the error that closed the connection, if any. - A tuple of
(offset, count)values for commands that allow paging through results. - An argument type equivalent to “[LIMIT count]”.
- Convenience interface for commands that take 1 or more strings.
- Convenience interface for commands that take 1 or more values.
- Resp2
Time Series Values i-time-seriesShorthand for the result of commands such asMGET,MRANGE, etc. - Resp3
Time Series Values i-time-seriesThe RESP3 equivalent of Resp2TimeSeriesValues. - XRead
Response i-streamsA generic helper type describing the top level response fromXREADorXREADGROUP. - XRead
Value i-streamsA generic helper type describing the ID and associated map for each record in a stream.