- java.lang.Object
-
- org.omnifaces.util.cache.TimeToLiveCache
-
- org.omnifaces.util.cache.DefaultCache
-
- All Implemented Interfaces:
Serializable
,Cache
public class DefaultCache extends TimeToLiveCache
An in-memory cache implementation that's used if the user did not configure an explicit caching provider.For the actual implementation, a repackaged
ConcurrentLinkedHashMap
is used if a maximum capacity is requested, otherwise a plainConcurrentHashMap
is used.- Since:
- 1.1
- Author:
- Arjan Tijms
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultCache(Integer defaultTimeToLive, Integer maxCapacity)
-
Method Summary
-
Methods inherited from class org.omnifaces.util.cache.TimeToLiveCache
clear, get, getAttribute, getObject, put, put, putAttribute, putObject, remove, setCacheStore
-
-