Code example for LruCache

0
     * @param <K> the type of the keys 
     * @param <V> the type of the values 
     * @return the newly created expirable cache 
     */ 
    public static <K, V> ExpirableCache<K, V> create(int maxSize) {
        return create(new LruCache<K, CachedValue<V>>(maxSize));
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java