Archive For The “Uncategorized” Category

Memoized Function with TTL

By |

Lodash.memoize¬†creates a function that memoizes the result of the function passed as a parameter. This is great if you want cache the result of an expensive function. However, lodash.memoize doesn’t support a TTL or expiry, but it does let you customise the underlying cache it uses. So, if for example you want to cache the…

Read more »