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
Seems like a no brainer to me UNLESS you are trying to keep zero dependencies - which is a valid desire. In that case, I would recommend having dependency injection of a cache which would allow for this without complication.
The text was updated successfully, but these errors were encountered:
Using LRU cache https://www.npmjs.com/package/lru-cache would handle the duration and allow for more complex cache eviction policies.
Seems like a no brainer to me UNLESS you are trying to keep zero dependencies - which is a valid desire. In that case, I would recommend having dependency injection of a cache which would allow for this without complication.
The text was updated successfully, but these errors were encountered: