contain-rs / lru-cache

A cache that holds a limited number of key-value pairs
https://contain-rs.github.io/lru-cache/lru_cache/
Apache License 2.0
83 stars 36 forks source link

Support expired with time limit. #34

Open loggerhead opened 8 years ago

loggerhead commented 8 years ago

lru_time_cache have implement this feature, but it is licensed under the GPL-3.0. Can you implement the expire time support? It would be very useful and helpful.

stusmall commented 7 years ago

I had the same need and wrote a crate to handle it. You can find it here: https://github.com/stusmall/ttl_cache