isaacs / node-lru-cache

A fast cache that automatically deletes the least recently used items
http://isaacs.github.io/node-lru-cache/
ISC License
5.38k stars 353 forks source link

Fetch value and ttl simultaneously #325

Closed thomaschaaf closed 1 year ago

thomaschaaf commented 1 year ago

I would like to retrieve the ttl and the value at the same time. Is there a way to do this?

isaacs commented 1 year ago

Yes, this is a good idea, and not hard to do. Will add something for this.