Options for memoize
.
Cache extends MemoizationCache<Key, MemoizationCacheResult<ReturnType<Fn>>>
The type of the cache.
Function to get a unique cache key from the function's arguments. By
default, a composite key is created from all the arguments plus the this
value, using reference equality to check for equivalence.
optional
errorIsCacheable: (err: unknown) => boolean = () => false
Callback to determine if an error or other thrown value is cacheable.