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.
- ClusterInfo
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.
- DatabaseMemoryStats
i-memoryThe parsed result of the MEMORY STATS command for a specific database. - Function
i-scriptsAn individual function within a Library. - GeoPosition
i-geoA struct describing the longitude and latitude coordinates of a GEO command. - GeoRadiusInfo
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. - MemoryStats
i-memoryThe parsed result of the MEMORY STATS command. - A publish-subscribe message.
- MultipleGeoValues
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.
- MultipleIDs
i-streamsOne or more IDs for elements in a stream. - Convenience struct for commands that take 1 or more keys.
- MultipleOrderedPairs
i-streamsOne or more ordered key-value pairs, typically used as an argument forXADD. - MultipleWeights
i-sorted-setsConvenience struct forZINTERSTOREandZUNIONSTOREwhen accepting 1 or moreweightsarguments. - MultipleZaddValues
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.
- RangeAggregation
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. - ReplicaConfig
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. - SentinelConfig
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-tlsTLS configuration for a client. - TracingConfig
partial-tracingConfiguration options for tracing. - Configuration options used to detect potentially unresponsive connections.
- SemVer version as defined by https://semver.org.
- XCap
i-streamsStream cap arguments forXADD,XTRIM, etc. - XPendingArgs
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 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.
- BucketTimestamp
i-time-seriesABUCKETTIMESTAMPargument in commands such asTS.MRANGE. - ClientKillFilter
i-clientFilters provided to the CLIENT KILL command. - ClientKillType
i-clientThe type of clients to close. - ClientPauseKind
i-clientFilters for the CLIENT PAUSE command. - ClientReplyFlag
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.
- ClusterFailoverFlag
i-clusterOptions for the CLUSTER FAILOVER command. - A cluster hashing policy.
- ClusterResetFlag
i-clusterFlags for the CLUSTER RESET command. - ClusterSetSlotState
i-clusterFlags for the CLUSTER SETSLOT command. - ClusterState
i-clusterThe state of the cluster from theCLUSTER INFOcommand. - An enum describing the possible ways in which a Redis cluster can change state.
- DuplicatePolicy
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.
- The policy type for the FUNCTION RESTORE command.
- FunctionFlag
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. - Options for the info command.
- LMoveDirection
i-listsThe direction to move elements in a *LMOVE command. - ListLocation
i-listsLocation flag for theLINSERTcommand. - The kind of pubsub message.
- Ordering
i-sorted-setsOrdering options for the ZADD (and related) commands. - ReconnectError
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. - The RESP version used in the
HELLOrequest. - The types of values supported by the type command.
- Flags for the SCRIPT DEBUG command.
- SentinelFailureKind
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.
- An argument representing a string or number.
- Timestamp
i-time-seriesA timestamp used in most timeseries commands. - TlsConnector
enable-rustlsorenable-native-tlsAn enum for interacting with various TLS libraries and interfaces. - TlsHostMapping
enable-rustlsorenable-native-tlsAn 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. - XCapKind
i-streamsThe MAXLEN or MINID argument for a stream cap. - XCapTrim
i-streamsRepresentation for the “=” or “~” operator inXADD, etc. - XID
i-streamsStream ID arguments forXADD,XREAD, etc. - ZCmp
i-sorted-setsMIN|MAXarguments forBZMPOP, etc. - ZRangeBound
i-sorted-setsAn index, score, lexicographical, or +|-|+inf|-inf range bound for the ZRANGE command. - ZRangeKind
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§
- A trait used to convert various forms of RedisValue into different types.
- A trait used to convert RedisKey values to various types.
- HostMapping
enable-rustlsorenable-native-tlsA trait used for mapping IP addresses to hostnames when processing theCLUSTER SLOTSresponse. - ReplicaFilter
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.
- Resp2TimeSeriesValues
i-time-seriesShorthand for the result of commands such asMGET,MRANGE, etc. - Resp3TimeSeriesValues
i-time-seriesThe RESP3 equivalent of Resp2TimeSeriesValues. - XReadResponse
i-streamsA generic helper type describing the top level response fromXREADorXREADGROUP. - XReadValue
i-streamsA generic helper type describing the ID and associated map for each record in a stream.