You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a custom cache, this means instead of .set() being provided an object with the properties value and maxAge, it will only be provided value as the first argument.
The custom cache can now be async by returning a promise in the .get() and .has() cache methods
Promises returned from a memoized function will be cached internally and take priority over cache. The promise cache does not persist outside of the current instance and properties assigned to a returned promise will not be kept. The custom cache will be provided the values of resolved promises instead of the promises themselves.