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

Modify put function to support a time that exceeds setTimeout's maximum time

Open gilruben opened this issue 7 years ago • 3 comments

setTimeout can support a maximum of 2147483647 milliseconds (about 24.9 days), which limits the time that the put function can support. Now it can support the maximum safe integer supported by the javascript number primitive (9007199254740991). 9007199254740991 milliseconds is about 285616.41 years.

gilruben avatar May 25 '17 16:05 gilruben

@ptarjan please check this out please

gilruben avatar Jun 14 '17 05:06 gilruben

@ptarjan I fixed the merge conflict

gilruben avatar Aug 09 '17 18:08 gilruben

@ptarjan merge this pr and release a new version please

forthedamn avatar Jan 17 '19 11:01 forthedamn