Code example for LruCache

Methods: put

0
     * 
     * @param key the key to look up 
     * @param value the value to associate with the key 
     */ 
    public void put(K key, V value) {
        mCache.put(key, newCachedValue(value));
    } 
 
    /** 
     * Mark all items currently in the cache as expired. 
     * <p> 
     * Newly added items after this call will be marked as not expired. 
     * <p> 
     * Expiring the items in the cache does not imply they will be evicted. 
     */ 
    public void expireAll() { 
        mGeneration.incrementAndGet();
    } 
 
    /** 
Contextual code suggestions in your IDE  Get Codota for Java