Class CHMCache

  • All Implemented Interfaces:
    NodeCache

    public class CHMCache
    extends java.lang.Object
    implements NodeCache
    A simplistic cache using a ConcurrentHashMap. There's no eviction policy, it just fills up until reaching the specified capacity (or close enough at least, bounds check is not atomic :)
    • Constructor Detail

      • CHMCache

        public CHMCache()
      • CHMCache

        public CHMCache​(int capacity)