java.lang.Object
com.maxmind.db.NoCache
- All Implemented Interfaces:
NodeCache
A no-op cache singleton.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.maxmind.db.NodeCache
NodeCache.Loader -
Method Summary
Modifier and TypeMethodDescriptionget(CacheKey key, NodeCache.Loader loader) This method returns the value for the key.static NoCache
-
Method Details
-
get
Description copied from interface:NodeCacheThis method returns the value for the key. If the key is not in the cache then the loader is called to load the value.- Specified by:
getin interfaceNodeCache- Parameters:
key- the key to look uploader- the loader to use if the key is not in the cache- Returns:
- the value for the key
- Throws:
IOException- if there is an error loading the value
-
getInstance
- Returns:
- the singleton instance of the NoCache class
-