Expand description
A small connection pool.
A cache read is supposed to be cheaper than the work it avoids, and a TCP
handshake plus AUTH plus SELECT per read is not. The pool keeps a few
connections alive and hands them out, discarding any whose framing may have
drifted — see super::connection::Connection::is_broken.
Structs§
- Pool
- Pooled
Connection - A connection borrowed from the pool, returned when dropped.