package resp

  1. Overview
  2. Docs

Module RespSource

REdis Serialization Protocol library for OCaml

%%VERSLwtN%% — homepage

Resp

Sourcetype t = [
  1. | `Nil
  2. | `Integer of int64
  3. | `String of string
  4. | `Error of string
  5. | `Bulk of string
  6. | `Array of t array
]
Sourcetype lexeme = [
  1. | `Nil
  2. | `Integer of int64
  3. | `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_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 of_alist : (string * t) list -> 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
OCaml

Innovation. Community. Security.