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

Use real TTL with Redis

Open itschrono opened this issue 4 years ago • 1 comments

For disk / memory usage improvement with redis I think it's better to not handle the TTL manually. And also a TTL in milliseconds would be better imho.

itschrono avatar Apr 21 '21 12:04 itschrono

Hi there! I implemented this on my branch, when an item is neither to be cached forever nor lazy.

boredland avatar Sep 30 '22 12:09 boredland

Will release v5 which will make it possible to specify the TTL in a more dynamic way. Regarding not handling the TTL manually, this is a bigger change which I will cover in a future release.

havsar avatar Dec 29 '22 08:12 havsar