node-ts-cache
node-ts-cache copied to clipboard
Use real TTL with Redis
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.
Hi there! I implemented this on my branch, when an item is neither to be cached forever nor lazy.
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.