platform-core/platform-cache/src/main/java/org/sunbird/cache/connection/RedisConnector.java
public static void returnConnection(Jedis jedis) {
        try {
            if (null != jedis) {
                jedisPool.returnResource(jedis);
            }
        } catch (Exception e) {
            TelemetryManager.error("Exception Occurred While Returning Redis Cache Connection Object to Pool.", e);
            throw new ServerException(CacheErrorCode.ERR_CACHE_CONNECTION_ERROR.name(), e.getMessage());
        }
    }
/**
     * This Method takes a connection object and put it back to pool.
     *
     * @param jedis
     */
This Method takes a connection object and put it back to pool.
@param jedis
This Method takes a connection object and put it back to pool . @param jedis
public static void returnConnection(Jedis jedis) {
        try {
            if (null != jedis) {
                jedisPool.returnResource(jedis);
            }
        } catch (Exception e) {
            TelemetryManager.error("Exception Occurred While Returning Redis Cache Connection Object to Pool.", e);
            throw new ServerException(CacheErrorCode.ERR_CACHE_CONNECTION_ERROR.name(), e.getMessage());
        }
    }
public static void returnConnection ( Jedis jedis ) { try { if ( null != jedis ) { jedisPool . returnResource ( jedis ) ; } } catch ( Exception e ) { TelemetryManager . error ( "Exception Occurred While Returning Redis Cache Connection Object to Pool." , e ) ; throw new ServerException ( CacheErrorCode . ERR_CACHE_CONNECTION_ERROR . name ( ) , e . getMessage ( ) ) ; } }
This Method takes a connection object and put it back to pool.
This Method takes a connection object and put it back to pool .