@Override public DispatchRequest undo(A action, R result, AsyncCallback<Void> callback, UndoCommand<A, R> undoCommand) { // Remove the cached entry getCache().remove(action); // Undo the previous action return undoCommand.undo(action, result, callback); }
@Override public DispatchRequest undo(A action, R result, AsyncCallback<Void> callback, UndoCommand<A, R> undoCommand) { // Remove the cached entry getCache().remove(action); // Undo the previous action return undoCommand.undo(action, result, callback); }
@Override protected void postfetch(A action, R result) { if (result == null) { getCache().remove(action); } else { getCache().put(action, result); } }
@Override protected void postfetch(A action, R result) { // Check if null result if (result == null) { getCache().remove(action); } else { // Cache getCache().put(action, result); } }