grantjenks / python-diskcache

Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.

Home Page:http://www.grantjenks.com/docs/diskcache/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

MacHu-GWU opened this issue · 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)