package resp-server

  1. Overview
  2. Docs

Module Resp_serverSource

Sourcemodule type BACKEND = sig ... end

BACKEND defines the minimum needed interface to create a new RESP server

Sourcemodule type AUTH = sig ... end

AUTH defines the interface for authenticating a client

Sourcemodule Value = Hiredis_value
Sourceval read_value : Lwt_io.input_channel -> Value.t Lwt.t
Sourceval write_value : Lwt_io.output_channel -> Value.t -> unit Lwt.t
Sourcemodule Client : sig ... end

Client is a pure OCaml implementation of a minimal Redis client

Sourcemodule type SERVER = sig ... end

SERVER defines the interface for a server

Sourcemodule Auth : sig ... end

General authentication modes

Sourcemodule Make (A : AUTH) (D : BACKEND) : SERVER with module Backend = D and module Auth = A

Construct a new SERVER with given authentication mode and backend