def collect(self):
        "Clean out any cache entries in this store that are currently older than allowed"
        now = time.time()
        for key, v in self._store.items():
            t, value = v # creation time, function output
            if self.maxAge > 0 and now - t > self.maxAge: # max ages of zero mean don't collect
                del self._store[key]
Clean out any cache entries in this store that are currently older than allowed
recipes/Python/442513_Caching_decorator_timeout_selective/recipe-442513.py