def get(self, key):
        try:
            value = self.cache.pop(key)
            self.cache[key] = value
            return value
        except KeyError:
            return -1
Return -1 if catched KeyError exception.
dataset/ETHPy150Open jasonlvhit/lunar/lunar/util.py/LRUCache.get