cacheman-mongo
cacheman-mongo copied to clipboard
node/index.js getTime() error 1.0.1 - 1.0.3
When the version was switched from 1.0.1 to 1.0.3 I started receiving this error:
TypeError: Cannot read property 'getTime' of undefined at node_modules/cacheman-mongo/node/index.js:124:28
It is resolved when returning back to 1.0.1 package.
This Commit Did not include a check for backwards compatibility. So any cache entries made before upgrade have an undefined expireAt property instead of a date.
@BenAceable I guess backward compatibility exceed here cause cache should be as fast as possible.
But from the other hand, some migration helper should be provided.