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

If you cache a result value that's a false boolean value, the cache will always miss

Open kgreen24 opened this issue 2 years ago • 0 comments

I created a cached method using the decorator and backed by NodeFsStorage. If the method returns a boolean that you want to cache, and the boolean value is false, the cache will always get hit. I'd expect it to respect the ttl.

kgreen24 avatar May 12 '23 19:05 kgreen24