platform-core/platform-cache/src/main/java/org/sunbird/cache/util/RedisCacheUtil.java
public static void saveList(String key, List<String> values) {
        Jedis jedis = getConnection();
        try {
            jedis.del(key);
            for (String val : values) {
                jedis.sadd(key, val);
            }
        } catch (Exception e) {
            TelemetryManager.error("Exception Occurred While Saving List Data to Redis Cache for Key : " + key + "| Exception is:", e);
            //TODO: Suppress this exception.
            throw new ServerException(CacheErrorCode.ERR_CACHE_SAVE_PROPERTY_ERROR.name(), e.getMessage());
        } finally {
            returnConnection(jedis);
        }
    }
/**
     * This method store/save list data into cache for given Key
     *  @param key
     * @param values
     */
This method store/save list data into cache for given Key
@param key
@param values
This method store / save list data into cache for given Key @param key @param values
public static void saveList(String key, List<String> values) {
        Jedis jedis = getConnection();
        try {
            jedis.del(key);
            for (String val : values) {
                jedis.sadd(key, val);
            }
        } catch (Exception e) {
            TelemetryManager.error("Exception Occurred While Saving List Data to Redis Cache for Key : " + key + "| Exception is:", e);
            throw new ServerException(CacheErrorCode.ERR_CACHE_SAVE_PROPERTY_ERROR.name(), e.getMessage());
        } finally {
            returnConnection(jedis);
        }
    }
public static void saveList ( String key , List < String > values ) { Jedis jedis = getConnection ( ) ; try { jedis . del ( key ) ; for ( String val : values ) { jedis . sadd ( key , val ) ; } } catch ( Exception e ) { TelemetryManager . error ( "Exception Occurred While Saving List Data to Redis Cache for Key : " + key + "| Exception is:" , e ) ; throw new ServerException ( CacheErrorCode . ERR_CACHE_SAVE_PROPERTY_ERROR . name ( ) , e . getMessage ( ) ) ; } finally { returnConnection ( jedis ) ; } }
This method store/save list data into cache for given Key
  @param key
 @param values
This method store / save list data into cache for given Key @param key @param values
//TODO: Suppress this exception.