Package org.alfresco.repo.cache
Class NullCache<K extends Serializable,V>
java.lang.Object
org.alfresco.repo.cache.NullCache<K,V>
- All Implemented Interfaces:
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
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NullCache
public NullCache()
-
-
Method Details
-
getInstance
- Returns:
- Returns a singleton that can be used in any way - all operations are stateless
-
contains
NO-OP- Specified by:
containsin interfaceSimpleCache<K extends Serializable,V>
-
getKeys
- Specified by:
getKeysin interfaceSimpleCache<K extends Serializable,V>
-
get
NO-OP- Specified by:
getin interfaceSimpleCache<K extends Serializable,V>
-
put
NO-OP- Specified by:
putin interfaceSimpleCache<K extends Serializable,V>
-
remove
NO-OP- Specified by:
removein interfaceSimpleCache<K extends Serializable,V>
-
clear
public void clear()NO-OP- Specified by:
clearin interfaceSimpleCache<K extends Serializable,V>
-