DeWu Technology
Dec 25, 2023 · Databases
Jedis Connection Pool: Principles, Configuration, and Troubleshooting
Jedis uses Apache Commons’ GenericObjectPool to manage Redis connections, with Spring‑Data‑Redis creating a JedisConnectionFactory that holds a configurable pool where borrowObject and returnObject handle idle queues, eviction and validation settings (testOnBorrow, testWhileIdle, etc.) can be tuned, and JMX metrics aid troubleshooting.
ConnectionPoolGenericObjectPoolJava
0 likes · 10 min read