package hiredis

  1. Overview
  2. Docs

Module Hiredis.Pool

A pool is used to access one server using many clients

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

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

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

use pool returns a new client from the pool