Module fred::types

source ·
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.
  • ClusterInfoi-cluster
    A parsed response from the CLUSTER INFO command.
  • 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.
  • The parsed result of the MEMORY STATS command for a specific database.
  • Functioni-scripts
    An individual function within a Library.
  • A struct describing the longitude and latitude coordinates of a GEO command.
  • A typed struct representing the full output of the GEORADIUS (or similar) command.
  • A struct describing the value inside a GEO data structure.
  • GroupByi-time-series
    A struct representing GROUPBY label REDUCE reducer in commands such as TS.MRANGE.
  • The result of a HSCAN operation.
  • Invalidationi-client and i-tracking
    A client tracking invalidation message from the provided server.
  • An event on the publish-subscribe interface describing a keyspace notification.
  • Libraryi-scripts
    A helper struct for interacting with libraries and functions.
  • MemoryStatsi-memory
    The parsed result of the MEMORY STATS command.
  • A convenience struct for commands that take one or more GEO values.
  • A convenience struct for functions that take one or more hash slot values.
  • MultipleIDsi-streams
    One or more IDs for elements in a stream.
  • Convenience struct for commands that take 1 or more keys.
  • One or more ordered key-value pairs, typically used as an argument for XADD.
  • MultipleWeightsi-sorted-sets
    Convenience struct for ZINTERSTORE and ZUNIONSTORE when accepting 1 or more weights arguments.
  • MultipleZaddValuesi-sorted-sets
    Convenience struct for the ZADD command 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.
  • RangeAggregationi-time-series
    A struct representing [ALIGN align] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY] in commands such as TS.MRANGE.
  • Configuration options for a RedisClient.
  • A key in Redis.
  • A map of (RedisKey, RedisValue) pairs.
  • Configuration options for replica node connections.
  • The result of a SSCAN operation.
  • The result of a SCAN operation.
  • Scripti-scripts
    An interface for caching and running lua scripts.
  • SentinelConfigsentinel-client
    Configuration options for sentinel clients.
  • State necessary to identify or connect to a server.
  • A slot range and associated cluster node information from the CLUSTER SLOTS command.
  • The output of an entry in the slow queries log.
  • Statsmetrics
    Stats describing a distribution of samples.
  • TCP configuration options.
  • TlsConfigenable-rustls or enable-native-tls or enable-rustls-ring
    TLS configuration for a client.
  • TracingConfigpartial-tracing
    Configuration options for tracing.
  • Configuration options used to detect potentially unresponsive connections.
  • SemVer version as defined by https://semver.org.
  • XCapi-streams
    Stream cap arguments for XADD, XTRIM, etc.
  • XPendingArgsi-streams
    A struct representing the trailing optional arguments to XPENDING.
  • ZRangei-sorted-sets
    A 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.
  • Aggregatori-time-series
    An 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.
  • BucketTimestampi-time-series
    A BUCKETTIMESTAMP argument in commands such as TS.MRANGE.
  • Filters provided to the CLIENT KILL command.
  • The type of clients to close.
  • Filters for the CLIENT PAUSE command.
  • Arguments 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.
  • Options for the CLUSTER FAILOVER command.
  • A cluster hashing policy.
  • Flags for the CLUSTER RESET command.
  • Flags for the CLUSTER SETSLOT command.
  • ClusterStatei-cluster
    The state of the cluster from the CLUSTER INFO command.
  • An enum describing the possible ways in which a Redis cluster can change state.
  • DuplicatePolicyi-time-series
    The duplicate policy used with certain timeseries commands.
  • Encodingi-time-series
    Encoding arguments for certain timeseries commands.
  • Expiration options for the set command.
  • The policy type for the FUNCTION RESTORE command.
  • FunctionFlagi-scripts
    Possible flags associated with a Function.
  • GeoUniti-geo
    Units for the GEO DIST command.
  • GetLabelsi-time-series
    Arguments equivalent to WITHLABELS | SELECTED_LABELS label... in various time series GET functions.
  • GetTimestampi-time-series
    A timestamp query used in commands such as TS.MRANGE.
  • Options for the info command.
  • The direction to move elements in a *LMOVE command.
  • Location flag for the LINSERT command.
  • The kind of pubsub message.
  • Orderingi-sorted-sets
    Ordering options for the ZADD (and related) commands.
  • ReconnectErrorcustom-reconnect-errors
    Special 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.
  • Reduceri-time-series
    A REDUCER argument in commands such as TS.MRANGE.
  • A RESP3 frame that uses Bytes and Str as the underlying buffer type.
  • The RESP version used in the HELLO request.
  • The types of values supported by the type command.
  • Flags for the SCRIPT DEBUG command.
  • SentinelFailureKindsentinel-client
    Arguments for the SENTINEL SIMULATE-FAILURE command.
  • 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.
  • Timestampi-time-series
    A timestamp used in most timeseries commands.
  • TlsConnectorenable-rustls or enable-native-tls or enable-rustls-ring
    An enum for interacting with various TLS libraries and interfaces.
  • TlsHostMappingenable-rustls or enable-native-tls or enable-rustls-ring
    An optional enum used to describe how the client should modify or map IP addresses and hostnames in a clustered deployment.
  • Togglei-client and i-tracking
    An ON|OFF flag used with client tracking commands.
  • XCapKindi-streams
    The MAXLEN or MINID argument for a stream cap.
  • XCapTrimi-streams
    Representation for the “=” or “~” operator in XADD, etc.
  • XIDi-streams
    Stream ID arguments for XADD, XREAD, etc.
  • ZCmpi-sorted-sets
    MIN|MAX arguments for BZMPOP, etc.
  • ZRangeBoundi-sorted-sets
    An index, score, lexicographical, or +|-|+inf|-inf range bound for the ZRANGE command.
  • ZRangeKindi-sorted-sets
    The type of range interval bound.
  • ZSorti-sorted-sets
    Options for the ZRANGE (and related) commands.

Constants§

Traits§

  • A trait used to convert various forms of RedisValue into different types.
  • A trait used to convert RedisKey values to various types.
  • HostMappingenable-rustls or enable-native-tls or enable-rustls-ring
    A trait used for mapping IP addresses to hostnames when processing the CLUSTER SLOTS response.
  • An interface used to filter the list of available replica nodes.
  • A 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 connect functions 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.
  • Shorthand for the result of commands such as MGET, MRANGE, etc.
  • The RESP3 equivalent of Resp2TimeSeriesValues.
  • XReadResponsei-streams
    A generic helper type describing the top level response from XREAD or XREADGROUP.
  • XReadValuei-streams
    A generic helper type describing the ID and associated map for each record in a stream.