def __setitem__(self, key, value):
        # TODO: pop support (see above)
        if len(self) >= self.max_size:
            old = self._queue.popleft()
            del self[old]
        super(LRI, self).__setitem__(key, value)
        self._queue.append(key)
dataset/ETHPy150Open mahmoud/boltons/boltons/cacheutils.py/LRI.__setitem__/original