cacheman-mongo icon indicating copy to clipboard operation
cacheman-mongo copied to clipboard

node/index.js getTime() error 1.0.1 - 1.0.3

Open BenAceable opened this issue 9 years ago • 2 comments

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.

BenAceable avatar Feb 01 '16 23:02 BenAceable

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 avatar Feb 01 '16 23:02 BenAceable

@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.

pahan35 avatar Nov 29 '18 20:11 pahan35