taoensso.carmine.connections
Handles socket connection lifecycle.
Pool is implemented with Apache Commons pool.
Originally adapted from `redis-clojure`.
default-ssl-fn
(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.
IConnection
protocol
members
-conn-error
(-conn-error this)
close-conn
(close-conn this)
conn-alive?
(conn-alive? this)
IConnectionPool
protocol
members
get-conn
(get-conn this spec)
release-conn
(release-conn this conn)
(release-conn this conn exception)
make-connection-factory
(make-connection-factory)
make-new-connection
(make-new-connection {:keys [host port username password db conn-setup-fn conn-timeout-ms read-timeout-ms timeout-ms ssl-fn], :as spec})
pooled-conn
(pooled-conn {:as conn-opts, pool-opts :pool, spec-opts :spec})
Returns [<open-pool> <pooled-connection>]