Spring redis template closing connection with jedis connectionfactory

200 views
Skip to first unread message

Balaji Dommaraju

unread,
Sep 23, 2015, 10:26:33 PM9/23/15
to Jedis
Hi i have connected redis endpoints with spring redis template with jedis connection factory but if i seen in aws console connections graph it has been increasing widely not closing those connection is there any way to close connection manually or it will do automatically>?

but as of know i have checked with below code, it is not working

 redisTemplate.discard(); or   redisTemplate.getConnectionFactory().getConnection().close(); 

even if did above one connections are remaining same and jedis pool also not working i have mention active connections 10 but it allowing even above 10 connections 
Reply all
Reply to author
Forward
0 new messages