java.lang.Object
com.sun.faces.util.LRUCache<K,V>
LRU Cache adapted to the code style of Faces
- Author:
- Paolo Bernardi
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LRUCache
-
-
Method Details
-
get
get from cache if exists else init the value + save in cache + return created value- Parameters:
key- the key- Returns:
- the value from cache if exists, otherwise the newly created and saved value
-
clear
public void clear()clear the cache -
remove
remove an element identified by the passed key from the cache
-