Class DefaultCache

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 LruCache is used if a maximum capacity is requested, otherwise a plain ConcurrentHashMap is used.

Since:
1.1
Author:
Arjan Tijms
See Also:
  • Constructor Details

    • DefaultCache

      public DefaultCache(Integer defaultTimeToLive, Integer maxCapacity)