skip to Main Content

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed)

While trying to use Jedis.get(key) while accessing the Redis using Jedis I'm getting this error. redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed) The code to access the Redis looks like below: private static JedisPoolConfig buildPoolConfig() { final JedisPoolConfig poolConfig = new…

VIEW QUESTION

One Lettuce Redis connection per servlet?

In a servlet, should Lettuce Redis connections be created in init() and shutdown in destroy() or should a connection be created for every request (in doPost or doGet?) I am using sync RedisCommands (connection.sync()) Lettuce states: Lettuce is thread-safe by…

VIEW QUESTION
Back To Top
Search