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] iterate over items

MarcMagnin opened this issue · comments

Is it possible to iterate over the cached items?

Not at this point. The values are stored in a map so it could be done but I am guessing it would not be easy to make this work without any race conditions. If you think this feature is important, you can open a feature request and explain what your use case is and why allowing iteration would be a good way to solve your issue.