What is the difference between Caching and Memoization?
Memoization is a specific form of caching that involves caching the return value of a function based on its parameters. Caching is a more general term; for example, HTTP caching is caching but not memoization. Wikipedia says: Although related to caching, memoization refers to a specific case of this optimization, distinguishing it from forms of … Read more