Interface SharedData
-
public interface SharedDataSharedData is used to access a model's, or globally, shared cache.
-
-
Method Summary
Modifier and Type Method Description CacheResultclear()Clear the shared data cache.CacheResultget(java.lang.String key)Retrieves an existing object from the cache.CacheResultput(java.lang.String key, byte[] value)Put a new key/value mapping into the cache.CacheResultremove(java.lang.String key)Remove a key/value mapping from the cache.
-
-
-
Method Detail
-
get
CacheResult get(java.lang.String key)
Retrieves an existing object from the cache.- Parameters:
key- the key mapping to a value.- Returns:
- A cache result.
-
put
CacheResult put(java.lang.String key, byte[] value)
Put a new key/value mapping into the cache.- Parameters:
key- the key mapping to a value.value- the value.- Returns:
- a cache result.
-
remove
CacheResult remove(java.lang.String key)
Remove a key/value mapping from the cache.- Parameters:
key- the key mapping to a value.- Returns:
- a cache result.
-
clear
CacheResult clear()
Clear the shared data cache.- Returns:
- a cache result.
-
-