package hiredis

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Hiredis is an OCaml wrapper around the hiredis C library

type value =
  1. | Nil
  2. | Error of string
  3. | Integer of int64
  4. | String of string
  5. | Array of value array
  6. | Status of string

The value type is used to encode values to communicate with Redis

module Value : sig ... end
type status =
  1. | OK
  2. | ERR of string option
val command : string array -> string option

Create a command from an array of strings

val command_v : value array -> string option

Create a command from an array of values

val encode_string : value -> string

Encode value to string

val decode_string : string -> value option

Decode value from string

module Reader : sig ... end

Readers are used to decode Redis values from buffered input

module Client : sig ... end
module Pool : sig ... end

A pool is used to access one server using many clients

module Shell : sig ... end