<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get(self, key):
 """Get a value out of the cache. Returns None if the key is not in the cache. Updates cache statistics. """

        if key in self.cache:
            self.hits += 1
            return self.cache[key]
        self.misses += 1
        return None