summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-02 13:50:22 +0000
committerErik Johnston <erik@matrix.org>2017-02-02 13:50:22 +0000
commit9efcc3f3be1f56be8ffdb3172d6908d55028cc61 (patch)
tree5374f6d6c3dff66c06cd80e3195f05d4ecf217f9
parentComment (diff)
downloadsynapse-9efcc3f3be1f56be8ffdb3172d6908d55028cc61.tar.xz
Comment
-rw-r--r--synapse/util/caches/descriptors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/util/caches/descriptors.py b/synapse/util/caches/descriptors.py
index 675bfd5feb..3c6838df16 100644
--- a/synapse/util/caches/descriptors.py
+++ b/synapse/util/caches/descriptors.py
@@ -478,6 +478,8 @@ class CacheListDescriptor(object):
 
 
 class _CacheContext(namedtuple("_CacheContext", ("cache", "key"))):
+    # We rely on _CacheContext implementing __eq__ and __hash__ sensibly,
+    # which namedtuple does for us.
     def invalidate(self):
         self.cache.invalidate(self.key)