node-cache icon indicating copy to clipboard operation
node-cache copied to clipboard

Npm test stuck if cache is used with TTL

Open ani-patel opened this issue 7 years ago • 1 comments

My unit tests are stuck after they are executed unless the library TTL expires for a particular operation

ani-patel avatar Apr 25 '18 07:04 ani-patel

Seems like there is an internal timer running to check the timeout. A simple workaround is, to call

require("memory-cache").clear()

at the end of your test.

jkoepcke avatar Jan 14 '19 09:01 jkoepcke