package redis-async

  1. Overview
  2. Docs

The RESP3 protocol as specified here: https://github.com/antirez/RESP3/blob/master/spec.md

exception Protocol_error of string
type t =
  1. | String of string
  2. | Error of string
  3. | Int of int
  4. | Null
  5. | Double of float
  6. | Boolean of bool
  7. | Bignum of Bignum.t
  8. | Array of t array
  9. | Map of (t * t) array
  10. | Set of t array
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
include Ppx_compare_lib.Equal.S with type t := t
val equal : t Base__Ppx_compare_lib.equal
val sexp_of_t : t -> Sexplib0.Sexp.t
val simple_string : ([> Core.read ], Iobuf.seek) Iobuf.t -> string
val blob_string : ([> Core.read ], Iobuf.seek) Iobuf.t -> string
val extract_error : ([> Core.read ], Iobuf.seek) Iobuf.t -> Core.Error.t
val parse_exn : ([> Core.read ], Iobuf.seek) Iobuf.t -> t
val expect_crlf : ([> Core.read ], Iobuf.seek) Iobuf.t -> unit
val expect_char : ([> Core.read ], Iobuf.seek) Iobuf.t -> char -> unit
val consume_char : ([> Core.read ], Iobuf.seek) Iobuf.t -> char
val peek_char : ([> Core.read ], Iobuf.seek) Iobuf.t -> char
val ends_in_crlf : ([> Core.read ], Iobuf.seek) Iobuf.t -> bool
val number : ([> Core.read ], Iobuf.seek) Iobuf.t -> int
OCaml

Innovation. Community. Security.