I'm using redis 2.8.19 and jedis 2.6.0
pool = new JedisPool( new JedisPoolConfig(), "ip", 6379, 0 );
System.out.println( "test2" );
Jedis jedis = pool.getResource();
jedis.psubscribe( new KeyExpiredListener(), "__key*__:*" );
pool.returnResource( jedis );
System.out.println( "test3" );
output:
test2
The app seems to hang when i try to subscribe to a channel. So the question I pose is why is my application hanging because of this.