Implement Promise based memoization with a given cache size behaving as an LRU cache with an expiry time and auto cache burst.
First, what we have to do is breakdown the terms in the problem statement to understand what is going on and what we are asked to do.
- Promise based memoization: Memoization is one of the ways we can improve the performance of functions by eliminating redundant calls. Memoization is a technique where we store the results of a function call in a cache and return the result from the cache if the function is called again with the same arguments.