type-cacheable icon indicating copy to clipboard operation
type-cacheable copied to clipboard

[bug] ttlseconds is actually using milliseconds and not seconds

Open paulfrench opened this issue 3 years ago • 2 comments

No idea if this is a core bug or the lrucache adaptor bug.

I'm using LRUCache. When specifying ttlseconds I have to actually specify millis. e.g for 30 seconds I have to specify

ttlseconds: 30000

It took me a while to work out why caching wasn't working!

paulfrench avatar Nov 12 '20 12:11 paulfrench

This is resolved in v9.0.1.

joshuaslate avatar Nov 14 '20 22:11 joshuaslate

Hello, I retested with 9.0.1

"@type-cacheable/core": "^9.0.1",
"@type-cacheable/lru-cache-adapter": "^9.0.1",

Still needed to multiply all ttlseconds by 1000

paulfrench avatar Nov 17 '20 12:11 paulfrench