summary refs log tree commit diff
path: root/synapse/util/caches
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-28 16:39:18 +0000
committerErik Johnston <erik@matrix.org>2016-01-28 16:39:18 +0000
commit45cf827c8fe7163a51f1d0d7c9e2531da9b58c8d (patch)
tree450edc3be0468c2f302c04b0df8cae058d3f79e5 /synapse/util/caches
parentCache tags and account data (diff)
downloadsynapse-45cf827c8fe7163a51f1d0d7c9e2531da9b58c8d.tar.xz
Change name and doc has_entity_changed
Diffstat (limited to 'synapse/util/caches')
-rw-r--r--synapse/util/caches/stream_change_cache.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/util/caches/stream_change_cache.py b/synapse/util/caches/stream_change_cache.py
index 33b37f7f29..3ca0e57780 100644
--- a/synapse/util/caches/stream_change_cache.py
+++ b/synapse/util/caches/stream_change_cache.py
@@ -40,7 +40,9 @@ class StreamChangeCache(object):
         self.name = name
         caches_by_name[self.name] = self._cache
 
-    def get_entity_has_changed(self, entity, stream_pos):
+    def has_entity_changed(self, entity, stream_pos):
+        """Returns True if the entity may have been updated since stream_pos
+        """
         assert type(stream_pos) is int
 
         if stream_pos <= self._earliest_known_stream_pos: