def __getitem__(self, key):
        try:
            entry = self._cache[key]
            cache_counter.inc_hits(self._cache_name)
        except __HOLE__:
            cache_counter.inc_misses(self._cache_name)
            raise

        if self._reset_expiry_on_get:
            entry.time = self._clock.time_msec()

        return entry.value
dataset/ETHPy150Open matrix-org/synapse/synapse/util/caches/expiringcache.py/ExpiringCache.__getitem__