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
letstore=undefined;if(someCondition){store=newKeyvMongo();}constcache=newKeyv({ store })
When you try to clear the cache, the error is thrown from inside the clear() call. I would expect a default new Map() to be used when store is explicitly set to undefined.
Maybe an error should be thrown if the store is misconfigured?
The text was updated successfully, but these errors were encountered:
I wrote a cache with something like this:
When you try to clear the cache, the error is thrown from inside the clear() call. I would expect a default
new Map()
to be used when store is explicitly set to undefined.Maybe an error should be thrown if the store is misconfigured?
The text was updated successfully, but these errors were encountered: