add api: func (c *Cache[K, V]) Get(key K) (value V ,found bool, leftTTL time.Duration)
Author: houkxCreated Jan 20, 2026Updated Jun 24, 2026
LabelsStale
Is your feature request related to a problem? Please describe
NO A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
refresh ttl use a setWithTTL after a get operation, or support refresh ttl direct.
A clear and concise description of what you want to happen. I'd like refresh the ttl after get a key, like a feature of Guava cache expire after last access
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Source: dgraph-io/ristretto