The internal data structure used by node-cache uses {} it seems that using a Map might be a better choice especially when there are a large amount of key/value pairs, along with TTI expiration.
It looks like it would be pretty straightforward to use Map instead of {}, and could perform better in js environments that have improved the native Map implementation.
The internal data structure used by
node-cacheuses{}it seems that using aMapmight be a better choice especially when there are a large amount of key/value pairs, along with TTI expiration.It looks like it would be pretty straightforward to use
Mapinstead of{}, and could perform better in js environments that have improved the nativeMapimplementation.