Code example for ConcurrentHashMap

Methods: clear

0
     * for memory efficiency reasons, the cache will automatically be cleared 
     * after a certain inactivity delay. 
     */ 
    public void clearCache() { 
        sHardBitmapCache.clear();
        sSoftBitmapCache.clear();
    } 
 
    /** 
     * Allow a new delay before the automatic cache clear is done. 
     */ 
    private void resetPurgeTimer() { 
        purgeHandler.removeCallbacks(purger);
        purgeHandler.postDelayed(purger, DELAY_BEFORE_PURGE);
    } 
}