Too Long; Didn't Read
Cache API Calls in JavaScript by Memoizing Promises. A higher-order function that stores promises in a map with key as parameters of the function that make API call and if the same API is called with the same params, the result will be served from cache.