package resp

  1. Overview
  2. Docs
Redis serialization protocol library

Install

Dune Dependency

Authors

Maintainers

Sources

resp-0.11.0.tbz
sha256=8c4f7afbed08c5d373a822cf0d2f21427605a283b24ef2e1354aa4bff3dd5035
sha512=1a14349721871c532142d48ad2811d8aad48173fe3c9a4eb0de7df3bcc58fedf98ed62ab0b548d9fa0d97c99559fb63de17622414155017744d04b8d8a35ff79

doc/resp/Resp/index.html

Module RespSource

REdis Serialization Protocol library for OCaml

%%VERSLwtN%% — homepage

Resp

Sourcetype t =
  1. | Nil
  2. | Integer of int64
  3. | Simple_string of string
  4. | Error of string
  5. | Bulk of [ `String of string | `Bytes of bytes ]
  6. | Array of t Seq.t
Sourcetype lexeme = [
  1. | `Nil
  2. | `Integer of int64
  3. | `Simple_string of string
  4. | `Error of string
  5. | `Bs of int
  6. | `As of int
]
Sourcetype error = [
  1. | `Msg of string
  2. | `Unexpected of char
  3. | `Invalid_value
  4. | `Invalid_encoder
]
Sourceval pp_error : Format.formatter -> error -> unit
Sourceval string_of_error : error -> string
Sourceval unwrap : ('a, error) result -> 'a
Sourceexception Exc of error
Sourcemodule type INPUT = sig ... end
Sourcemodule type OUTPUT = sig ... end
Sourcemodule type READER = sig ... end
Sourcemodule type WRITER = sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Reader (I : INPUT) : READER with type ic = I.ic
Sourcemodule Writer (O : OUTPUT) : WRITER with type oc = O.oc
Sourcemodule Make (Reader : READER) (Writer : WRITER) : S with module Reader = Reader and module Writer = Writer
Sourcemodule String_reader : READER with type ic = string ref
Sourcemodule String_writer : WRITER with type oc = string ref
Sourcemodule String : S with module Reader = String_reader and module Writer = String_writer
Sourceval is_nil : t -> bool
Sourceval to_string : t -> (string, error) result
Sourceval to_string_exn : t -> string
Sourceval to_bytes : t -> (bytes, error) result
Sourceval to_bytes_exn : t -> bytes
Sourceval to_integer : t -> (int64, error) result
Sourceval to_integer_exn : t -> int64
Sourceval to_float : t -> (float, error) result
Sourceval to_float_exn : t -> float
Sourceval to_array : (t -> 'b) -> t -> ('b array, error) result
Sourceval to_array_exn : (t -> 'b) -> t -> 'b array
Sourceval to_list : (t -> 'b) -> t -> ('b list, error) result
Sourceval to_list_exn : (t -> 'b) -> t -> 'b list
Sourceval to_seq : (t -> 'b) -> t -> ('b Seq.t, error) result
Sourceval to_seq_exn : (t -> 'b) -> t -> 'b Seq.t
Sourceval to_alist : (t -> 'k) -> (t -> 'v) -> t -> (('k * 'v) list, error) result
Sourceval to_alist_exn : (t -> 'k) -> (t -> 'v) -> t -> ('k * 'v) list
Sourceval to_hashtbl : (t -> 'k) -> (t -> 'v) -> t -> (('k, 'v) Hashtbl.t, error) result
Sourceval to_hashtbl_exn : (t -> 'k) -> (t -> 'v) -> t -> ('k, 'v) Hashtbl.t
Sourceval int : int -> t
Sourceval int64 : int64 -> t
Sourceval float : float -> t
Sourceval bytes : bytes -> t
Sourceval string : string -> t
Sourceval simple_string : string -> t
Sourceval nil : t
Sourceval array : ('a -> t) -> 'a array -> t
Sourceval list : ('a -> t) -> 'a list -> t
Sourceval alist : ('k -> t) -> ('v -> t) -> ('k * 'v) list -> t
Sourceval hashtbl : ('k -> t) -> ('v -> t) -> ('k, 'v) Hashtbl.t -> t
Sourceval id : 'a -> 'a
Sourceval equal : t -> t -> bool
OCaml

Innovation. Community. Security.

On This Page
  1. Resp