synapse/util/caches/stream_change_cache.py
def has_any_entity_changed(self, stream_pos):
        """Returns if any entity has changed
        """
        assert type(stream_pos) is int

        if stream_pos >= self._earliest_known_stream_pos:
            self.metrics.inc_hits()
            keys = self._cache.keys()
            i = keys.bisect_right(stream_pos)

            return i < len(keys)
        else:
            self.metrics.inc_misses()
            return True
Returns if any entity has changed
        
Returns if any entity has changed
Returns if any entity has changed
def has_any_entity_changed(self, stream_pos):
        assert type(stream_pos) is int
        if stream_pos >= self._earliest_known_stream_pos:
            self.metrics.inc_hits()
            keys = self._cache.keys()
            i = keys.bisect_right(stream_pos)
            return i < len(keys)
        else:
            self.metrics.inc_misses()
            return True
def has_any_entity_changed ( self , stream_pos ) : assert type ( stream_pos ) is int if stream_pos >= self . _earliest_known_stream_pos : self . metrics . inc_hits ( ) keys = self . _cache . keys ( ) i = keys . bisect_right ( stream_pos ) return i < len ( keys ) else : self . metrics . inc_misses ( ) return True
Returns if any entity has changed
Returns if any entity has changed
"""Returns if any entity has changed
        """
self
stream_pos