Handles socket connection lifecycle. Pool is implemented with Apache Commons pool. Originally adapted from redis-clojure.
Handles socket connection lifecycle. Pool is implemented with Apache Commons pool. Originally adapted from redis-clojure.
(conn-pool pool-opts & [use-cache?])
(close-conn this)
(conn-alive? this)
(get-conn this spec)
(release-conn this conn)
(release-conn this conn exception)
(make-connection-factory)
(make-new-connection {:keys [host port password db conn-setup-fn conn-timeout-ms
read-timeout-ms timeout-ms]
:as spec})
(pooled-conn {:as conn-opts pool-opts :pool spec-opts :spec})
Returns [<open-pool> <pooled-connection>].
Returns [<open-pool> <pooled-connection>].
(set-pool-option pool [opt v])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close