Package com.maxmind.db
Class CHMCache
java.lang.Object
com.maxmind.db.CHMCache
- All Implemented Interfaces:
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
Nested classes/interfaces inherited from interface com.maxmind.db.NodeCache
NodeCache.Loader
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CHMCache
public CHMCache() -
CHMCache
public CHMCache(int capacity)
-
-
Method Details
-
get
- Specified by:
get
in interfaceNodeCache
- Throws:
IOException
-