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.
(default-ssl-fn {:keys [socket host port]})
Takes an unencrypted underlying java.net.Socket and returns an encrypted java.net.Socket using the environment's default SSLSocketFactory.
Takes an unencrypted underlying java.net.Socket and returns an encrypted java.net.Socket using the environment's default SSLSocketFactory.
(get-conn this spec)
(release-conn this conn)
(release-conn this conn exception)
(make-new-connection {:keys [host port password db conn-setup-fn conn-timeout-ms
read-timeout-ms timeout-ms ssl-fn]
:as spec})
(pooled-conn {:as conn-opts pool-opts :pool spec-opts :spec})
Returns [<open-pool> <pooled-connection>]
Returns [<open-pool> <pooled-connection>]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close