Module Redis.Consumer_info

The return value for the XINFO CONSUMERS command https://redis.io/commands/xinfo-consumers/

type t = {
  1. name : Consumer.t;
  2. pending : int;
  3. idle : Core.Time_ns.Span.t;
  4. inactive : Core.Time_ns.Span.t option;
    (*

    inactive was added in 7.2.x

    *)
}
val sexp_of_t : t -> Sexplib0.Sexp.t
val of_resp3 : Resp3.t -> t Core.Or_error.t
val last_successful_interaction : t -> Core.Time_ns.Span.t

Before Redis 7.2.0, idle used to denote the time passed since last successful interaction. In 7.2.0, inactive was added and idle was changed to denote the time passed since last attempted interaction.

https://redis.io/docs/latest/commands/xinfo-consumers/

val last_attempted_interaction : t -> Core.Time_ns.Span.t option