Package com.maxmind.db
Class CHMCache
- java.lang.Object
-
- com.maxmind.db.CHMCache
-
- All Implemented Interfaces:
NodeCache
public class CHMCache extends Object implements NodeCache
A simplistic cache using aConcurrentHashMap
. There's no eviction policy, it just fills up until reaching the specified capacity (or close enough at least, bounds check is not atomic :)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.maxmind.db.NodeCache
NodeCache.Loader
-
-
-
-
Method Detail
-
get
public Object get(int key, NodeCache.Loader loader) throws IOException
- Specified by:
get
in interfaceNodeCache
- Throws:
IOException
-
-