def cleanup(self):
        keys = self.client.smembers(self.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)
Cleanup all the expired keys
dataset/ETHPy150Open tweepy/tweepy/tweepy/cache.py/RedisCache.cleanup