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 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 :)-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Object
get(int key, NodeCache.Loader loader)