def __setitem__(self, key, value):

        if key in self.indices:
            index = self.indices[key]
            self._remove(index)
        else:
            index = None
        next_index = self._next_index(index)
        self._insert(key, value, next_index)
        ejected = self._maybe_eject()

        if self.callback and ejected is not None:
            self.callback(*ejected)
Store an item indexed by argument 'key'.
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/datastore/lrucache.py/BoundedLRUBuffer.__setitem__