Generates Redux middleware that will trigger an asynchronous write to cache on a requestIdleCallback . You supply a map of action types to reducers that should be persisted as a result of a given action. You supply the function to be called for persisting (must return a Promise).