code: void releaseConnection(Jedis res)
      {
          if (logger.isDebugEnabled())
              logger.info("releasing connection from pool");
          Object poolOrConnection = getConnectionPoolOrConnection();
          if (poolOrConnection instanceof JedisPool)
          {
              ((JedisPool) poolOrConnection).returnResource(res);
          }
      }
docs: Release/return connection to pool.
  
  @param res
  jedis resource