public class FSDefaultCacheStore extends Object implements FSCacheEx<String,FSCacheValue>
ConcurrentHashMap internally.
Specifically, the get(String, Callable) may call the loader multiple times if called in close succession.| Constructor and Description |
|---|
FSDefaultCacheStore() |
| Modifier and Type | Method and Description |
|---|---|
FSCacheValue |
get(String key) |
FSCacheValue |
get(String key,
Callable<? extends FSCacheValue> loader) |
void |
put(String key,
FSCacheValue value) |
public void put(String key, FSCacheValue value)
put in interface FSCacheEx<String,FSCacheValue>public FSCacheValue get(String key, Callable<? extends FSCacheValue> loader)
get in interface FSCacheEx<String,FSCacheValue>public FSCacheValue get(String key)
get in interface FSCacheEx<String,FSCacheValue>Copyright © 2018. All rights reserved.