public interface CacheManager
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
Object value)
Adds a given value into the cache under given key
|
void |
dispose()
Disposes cache and cleans up/closes its stored resources of applicable
|
Object |
get(String key)
Retrieves item from a cache if exists
|
Object |
remove(String key)
Removes the item from cache if exists
|
void add(String key, Object value)
key
- unique key for the item to be storedvalue
- actual value to be cachedObject get(String key)
key
- key for the item in the cacheObject remove(String key)
key
- key for the item in the cachevoid dispose()
for details
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.