package hiredis

  1. Overview
  2. Docs

Module Hiredis.PoolSource

A pool is used to access one server using many clients

Sourceval create : ?port:int -> string -> int -> t

create ~port host n creates a new pool of n clients listening on host:port

Sourceval use : t -> (Client.t -> 'a Lwt.t) -> 'a Lwt.t

use pool returns a new client from the pool

OCaml

Innovation. Community. Security.