org.qi4j.spi.cache
Interface Cache<T>
- Type Parameters:
T
- The Value type to be stored in the cache.
- All Known Implementing Classes:
- NullCache
public interface Cache<T>
Interface to interact with Cache implementations.
The Cache interface has the simple put/get/remove method to make implementations very easy and straight forward.
The key is always a String, since it is intended to be used for the EntityComposite's identity, and not totally
generic.
Method Summary |
boolean |
exists(java.lang.String key)
|
T |
get(java.lang.String key)
|
void |
put(java.lang.String key,
T value)
|
T |
remove(java.lang.String key)
|
get
T get(java.lang.String key)
remove
T remove(java.lang.String key)
put
void put(java.lang.String key,
T value)
exists
boolean exists(java.lang.String key)
Copyright © 2007-2010. All Rights Reserved.