Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added connection destroy code in RedisClientFactory.java

  • Loading branch information...
commit ebc7e32db66ebc35046321850d3973990fea9148 1 parent 392ec19
@kkmishra kkmishra authored
View
3  kundera-redis/src/main/java/com/impetus/client/redis/RedisClientFactory.java
@@ -179,6 +179,9 @@ public void destroy()
if (getConnectionPoolOrConnection() != null && getConnectionPoolOrConnection() instanceof JedisPool)
{
((JedisPool) getConnectionPoolOrConnection()).destroy();
+ } else if(getConnectionPoolOrConnection() != null && getConnectionPoolOrConnection() instanceof Jedis)
+ {
+ ((Jedis) getConnectionPoolOrConnection()).disconnect();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.