platform-core/platform-cache/src/main/java/org/sunbird/cache/util/RedisCacheUtil.java
public static void saveString(String key, String value, int ttl) {
        Jedis jedis = getConnection();
        try {
            jedis.del(key);
            jedis.set(key, value);
            if (ttl > 0)
                jedis.expire(key, ttl);
        } catch (Exception e) {
            TelemetryManager.error("Exception Occurred While Saving String 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 string data into cache for given Key
     *
     * @param key
     * @param value
     * @param ttl
     */
This method store string data into cache for given Key
@param key
@param value
@param ttl
This method store string data into cache for given Key @param key @param value @param ttl
public static void saveString(String key, String value, int ttl) {
        Jedis jedis = getConnection();
        try {
            jedis.del(key);
            jedis.set(key, value);
            if (ttl > 0)
                jedis.expire(key, ttl);
        } catch (Exception e) {
            TelemetryManager.error("Exception Occurred While Saving String 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 saveString ( String key , String value , int ttl ) { Jedis jedis = getConnection ( ) ; try { jedis . del ( key ) ; jedis . set ( key , value ) ; if ( ttl > 0 ) jedis . expire ( key , ttl ) ; } catch ( Exception e ) { TelemetryManager . error ( "Exception Occurred While Saving String 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 string data into cache for given Key
 @param key
 @param value
 @param ttl
This method store string data into cache for given Key @param key @param value @param ttl
//TODO: Suppress this exception.