com.maxmind.db

## Class NoCache

- java.lang.Object
- - com.maxmind.db.NoCache

- All Implemented Interfaces:
    NodeCache

      public class NoCache
      extends Object
      implements NodeCache

  A no-op cache singleton.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.maxmind.db.NodeCache

      `NodeCache.Loader`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `get(int key, NodeCache.Loader loader)` Get a value from the cache, loading it if necessary.
    `static NoCache` | `getInstance()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### get

          public Object get(int key,
                            NodeCache.Loader loader)
                     throws IOException

      Description copied from interface: `NodeCache`
      Get a value from the cache, loading it if necessary.
      Specified by:
        `get` in interface `NodeCache`
      Parameters:
        `key` - the cache key
        `loader` - the loader to use if the key is not in cache
      Returns:
        the cached or loaded value
      Throws:
        `IOException` - if loading fails

    - #### getInstance

          public static NoCache getInstance()