

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

dataset/ETHPy150Open tweepy/tweepy/tweepy/cache.py RedisCache.cleanup/VarMisuse@20/33 `self`->`entry`