Cache with time limit

I wrote a small library that would cache values up to some TTL. Hopefully others might find it useful

https://github.com/stusmall/ttl_cache

3 Likes

I wondered why it has a time dependency, which is not required for timeouts (since the standard library provides std::time::Instant). It seems that you once tried that and switched to std::time later! It would be great to clean up unused dependencies then :slight_smile:

1 Like

Oh that's great news. Thanks. I'll remove that dependency this weekend.

1 Like