type-cacheable
type-cacheable copied to clipboard
[bug] ttlseconds is actually using milliseconds and not seconds
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!
This is resolved in v9.0.1.
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