Code example for LoadingCache

Methods: get

0
     */ 
    public abstract T fetchValue(String id);
 
 
    public T get(String id) throws ExecutionException {
        return loadingCache.get(id).orNull();
    } 
 
    public void remove(String id) {
        loadingCache.invalidate(id);
    } 
 
    public void put(String id, T value) {
        if (id == null || value == null) {
            return; 
        } 
        loadingCache.put(id, Optional.fromNullable(value));
    } 
 
    public void clear() { 
Connect your IDE to all the code out there  Get Codota for Java