dgraph-io / ristretto

A high performance memory-bound Go cache

Home Page:https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] refresh a TTL

MarcMagnin opened this issue · comments

What's the best way to 'renew' the expiration of an item?
SetWithTTL again?

Yes. The ttl will get reset if you call SetWithTTL on and existing key.