Class NullCache<K extends Serializable,​V>

  • All Implemented Interfaces:
    SimpleCache<K,​V>

    public class NullCache<K extends Serializable,​V>
    extends Object
    implements SimpleCache<K,​V>
    A cache that does nothing - always.

    There are conditions under which code that expects to be caching, should not be. Using this cache, it becomes possible to configure a valid cache in whilst still ensuring that the actual caching is not performed.

    Author:
    Derek Hulley