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

module Value = Hiredis_value

The Value.t type is used to encode Value.ts to communicate with Redis

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.t array -> string option

Create a command from an array of Value.ts

val encode_string : Value.t -> string

Encode Value.t to string

val decode_string : string -> Value.t option

Decode Value.t from string

module Reader : sig ... end

Readers are used to decode Redis Value.ts 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
OCaml

Innovation. Community. Security.