package hiredis

  1. Overview
  2. Docs

Module HiredisSource

Hiredis is an OCaml wrapper around the hiredis C library

Sourcemodule Value = Hiredis_value

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

Sourcetype status =
  1. | OK
  2. | ERR of string option
Sourceval command : string array -> string option

Create a command from an array of strings

Sourceval command_v : Value.t array -> string option

Create a command from an array of Value.ts

Sourceval encode_string : Value.t -> string

Encode Value.t to string

Sourceval decode_string : string -> Value.t option

Decode Value.t from string

Sourcemodule Reader : sig ... end

Readers are used to decode Redis Value.ts from buffered input

Sourcemodule Client : sig ... end
Sourcemodule Pool : sig ... end

A pool is used to access one server using many clients

Sourcemodule Shell : sig ... end
OCaml

Innovation. Community. Security.