def get(self, key):
try:<EOL><INDENT>value = self._cache[key]<EOL>self._order.push(key)<EOL>self._hits += <NUM_LIT:1><EOL>return value<EOL><DEDENT>except KeyError as e:<EOL><INDENT>self._misses += <NUM_LIT:1><EOL>raise<EOL><DEDENT>
>>> c = LRUCache()
>>> c.get('toto')
Traceback (most recent call last):
    ...
KeyError: 'toto'
>>> c.stats()['misses']
1
>>> c.put('toto', 'tata')
>>> c.get('toto')
'tata'
>>> c.stats()['hits']
1