def cleanup(self):
keys = self.client.smembers(self.keys_container)<EOL>for key in keys:<EOL><INDENT>entry = self.client.get(key)<EOL>if entry:<EOL><INDENT>entry = pickle.loads(entry)<EOL>if self._is_expired(entry, self.timeout):<EOL><INDENT>self.delete_entry(key)<EOL><DEDENT><DEDENT><DEDENT>
Cleanup all the expired keys