def expire(self, age):
now = time.time()<EOL>cache = self._acquire_cache()<EOL>expired = [k for k, v in cache.items() if (now - v[<NUM_LIT:0>]) > age]<EOL>for k in expired:<EOL><INDENT>if k in cache:<EOL><INDENT>del cache[k]<EOL><DEDENT>if k in self.store:<EOL><INDENT>del self.store[k]<EOL><DEDENT><DEDENT>self._write_cache(cache)<EOL>
Expire any items in the cache older than `age` seconds