python-diskcache icon indicating copy to clipboard operation
python-diskcache copied to clipboard

[Feature Request] Allow iterkeys method to yield value or tag along with key?

Open MacHu-GWU opened this issue 2 years ago • 0 comments

Since the cache is a dictionary liked key value store, can we add a method like iteritems or iterkeyandtags?

I think it should be more performant than:

for key in cache.iterkeys():
     value, tag = cache.get(key, tag=True)

MacHu-GWU avatar Oct 14 '23 14:10 MacHu-GWU