org.omnifaces.component.output.cache
Class DefaultCache
java.lang.Object
org.omnifaces.component.output.cache.TimeToLiveCache
org.omnifaces.component.output.cache.DefaultCache
- All Implemented Interfaces:
- java.io.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 plain ConcurrentHashMap
is used.
See: http://code.google.com/p/concurrentlinkedhashmap
- Since:
- 1.1
- Author:
- Arjan Tijms
- See Also:
- Serialized Form
Constructor Summary |
DefaultCache(java.lang.Integer defaultTimeToLive,
java.lang.Integer maxCapacity)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCache
public DefaultCache(java.lang.Integer defaultTimeToLive,
java.lang.Integer maxCapacity)