Class 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:
    Serialized Form
    • Constructor Detail

      • DefaultCache

        public DefaultCache​(Integer defaultTimeToLive,
                            Integer maxCapacity)