PropertiesfileCache
public interface Cache
Modifier and Type | Method | Description |
---|---|---|
void |
delete() |
Deletes the cache.
|
java.lang.Object |
get(java.lang.Object key) |
Returns a value for a given key from the cache.
|
boolean |
isValid() |
Checks its prerequisites.
|
java.util.Iterator<java.lang.String> |
iterator() |
Returns an iterator over the keys in the cache.
|
void |
load() |
Loads the cache, must handle not existing cache.
|
void |
put(java.lang.Object key,
java.lang.Object value) |
Saves a key-value-pair in the cache.
|
void |
save() |
Saves modification of the cache.
|
boolean isValid()
void delete()
void load()
void save()
java.lang.Object get(java.lang.Object key)
key
- the keyvoid put(java.lang.Object key, java.lang.Object value)
key
- the keyvalue
- the valuejava.util.Iterator<java.lang.String> iterator()