Optional
A function to create a key for the cache. This is used to store the result of the function in the cache.
The maximum number of entries to store in the cache.
The type of the function to memoize. This sets a suitable default value for the createKey function.
createKey
A function to create a key for the cache. This is used to store the result of the function in the cache.