Storable Actions
// API version of 44.0 or higher, you must annotate the Apex method with @AuraEnabled(cacheable=true)
// Note: the annotated method must only get data. It can’t mutate (create/update) data.
var action = component.get("c.getItems");
// A storable action is a server action whose response is stored in the client cache
// so that subsequent requests for the same server method
// with the same set of arguments can be accessed from that cache.
action.setStorable();
action.setCallback(this, function(response) {
// handle response
};
$A.enqueueAction(action);