01: package snaq.util;
02:
03: /**
04: * Interface for objects that can be referenced in a cache manager.
05: * @see snaq.util.CacheManager
06: * @author Giles Winstanley
07: */
08: public interface Cacheable {
09: /**
10: * Uniquely identifies the object in the cache.
11: */
12: public Object getId();
13:
14: /**
15: * Whether the item has expired.
16: */
17: public boolean isExpired();
18: }
|