Redis_lwt.Poolmodule IO = IOmodule Client = Clientval size : t -> intval create : size:int -> Client.connection_spec -> t IO.tCreate a pool of size connections, using the given spec.
val with_pool : size:int -> Client.connection_spec -> (t -> 'a IO.t) -> 'a IO.tCreate a pool of size connections, using the given spec, pass it to the callback, and then destroy it.
val with_connection : t -> (Client.connection -> 'a IO.t) -> 'a IO.tTemporarily require a connection to perform some operation. The connection must not escape the scope of the callback