01: package org.shiftone.cache.policy.zero;
02:
03: import org.shiftone.cache.Cache;
04:
05: /**
06: * Class ZeroCache
07: *
08: *
09: * @author <a href="mailto:jeff@shiftone.org">Jeff Drost</a>
10: * @version $Revision: 1.1 $
11: */
12: class ZeroCache implements Cache {
13:
14: public final void addObject(Object userKey, Object cacheObject) {
15: }
16:
17: public final Object getObject(Object key) {
18: return null;
19: }
20:
21: public final int size() {
22: return 0;
23: }
24:
25: public final void remove(Object key) {
26: }
27:
28: public final void clear() {
29: }
30:
31: public final String toString() {
32: return "ZeroCache";
33: }
34: }
|