[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.
A high performance memory-bound Go cache
https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/
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.