package resp-server

  1. Overview
  2. Docs

Module Resp_server.ClientSource

Client is a pure OCaml implementation of a minimal Redis client

Sourcetype t
Sourceval connect : ?ctx:Conduit_lwt_unix.ctx -> ?tls_config:Conduit_lwt_unix.client_tls_config -> ?port:int -> string -> t Lwt.t

Connect to a remote server optionally with TLS. If no port is provided then the string arguments is assumed to be a Unix socket address.

Sourceval read : t -> Value.t Lwt.t

Read a value from the connection

Sourceval write : t -> Value.t -> unit Lwt.t

Write a value to the connection

Sourceval run : t -> string array -> Value.t Lwt.t

Write a command to the connection and return the the resulting value

Sourceval run_v : t -> Value.t array -> Value.t Lwt.t

Similar to run, but take an array of values instead of an array of strings

OCaml

Innovation. Community. Security.