public interface ObjectCache
Note: Adding functions to this interface will NOT be considered as breaking binary compatibility.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache, all objects are removed.
|
Object |
get(String key)
Retrieves object.
|
Object |
get(String key,
Object def)
Returns object in the non strict manner.
|
Set<String> |
getKeys()
Returns all keys which are in use.
|
void |
put(String key,
Object object)
Puts object into cache.
|
void |
remove(String key)
Removes the specified key.
|
void put(String key, Object object)
key - data keyobject - objectvoid remove(String key)
key - keyObject get(String key)
key - data keyNoSuchElementException - if key doesn't existsObject get(String key, Object def)
key - keydef - default value returned if key doesn't existsvoid clear()
Copyright © 2016. All rights reserved.