|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.cache.NullCache
public class NullCache
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.
| Constructor Summary | |
|---|---|
NullCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
NO-OP |
boolean |
contains(java.io.Serializable key)
NO-OP |
java.lang.Object |
get(java.io.Serializable key)
NO-OP |
java.util.Collection |
getKeys()
|
void |
put(java.io.Serializable key,
java.lang.Object value)
NO-OP |
void |
remove(java.io.Serializable key)
NO-OP |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullCache()
| Method Detail |
|---|
public boolean contains(java.io.Serializable key)
contains in interface org.alfresco.repo.cache.SimpleCachepublic java.util.Collection getKeys()
getKeys in interface org.alfresco.repo.cache.SimpleCachepublic java.lang.Object get(java.io.Serializable key)
get in interface org.alfresco.repo.cache.SimpleCache
public void put(java.io.Serializable key,
java.lang.Object value)
put in interface org.alfresco.repo.cache.SimpleCachepublic void remove(java.io.Serializable key)
remove in interface org.alfresco.repo.cache.SimpleCachepublic void clear()
clear in interface org.alfresco.repo.cache.SimpleCache
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||