dgraph-io / ristretto

A high performance memory-bound Go cache
https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/
Apache License 2.0
5.61k stars 372 forks source link

[QUESTION]: Does doing a get on a key update its ttl ? #403

Open 0110G opened 1 week ago

0110G commented 1 week ago

Question.

Does doing a cache.Get(k) on a key k update its ttl ?

KMACEL commented 1 week ago

@0110G Hello. No, it does not update.

avadhut123pisal commented 20 hours ago

Is there any plan to support the dynamic TTL ?