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