public interface ICache extends Serializable
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
get a item from cache.
|
Collection<String> |
getKeys()
return all keys contains in cache.
|
String |
getName()
get the name of the cache.
|
int |
getSize()
return the number of items contains in Cache.
|
void |
put(String key,
Object item)
add item to cache
|
void |
removeAll()
remove all items from cache.
|
boolean |
removeItem(String key)
remove item and return true if removed.
|
String getName()
boolean removeItem(String key)
key
- void removeAll()
int getSize()
Collection<String> getKeys()
Copyright © 2012-2018. All Rights Reserved.