@classmethod
    def update_cache(cls, chat):
        cls.cache.append(chat)
        if cls.cache_size > len(cls.cache):
            cls.cache = cls.cache[-cls.cache_size:]
dataset/ETHPy150Open tornadoweb/tornado/demos/websocket/chatdemo.py/ChatSocketHandler.update_cache/swapped operands of `>`