Cache.__iter__()
Iterate over keys in insertion order. An overwrite keeps its key’s place. The walk covers
Usage
Cache.__iter__()the entries there when it began: one stored meanwhile isn’t yielded, and one deleted and stored again is yielded once, as in diskcache.
As with iterkeys(), expired entries are skipped, and next() raises ValueError while another thread is inside it.