summary refs log tree commit diff
path: root/synapse/util/caches/treecache.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-19 11:18:26 +0100
committerErik Johnston <erik@matrix.org>2016-08-19 14:17:07 +0100
commit4161ff2fc45781dd69623f95721533e0a594f807 (patch)
tree9df8f3b1f590e4a6e32ad90be4a93455d307cac3 /synapse/util/caches/treecache.py
parentMerge pull request #1026 from matrix-org/paul/thirdpartylookup (diff)
downloadsynapse-4161ff2fc45781dd69623f95721533e0a594f807.tar.xz
Add concept of cache contexts
Diffstat (limited to 'synapse/util/caches/treecache.py')
-rw-r--r--synapse/util/caches/treecache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/util/caches/treecache.py b/synapse/util/caches/treecache.py
index 03bc1401b7..c31585aea3 100644
--- a/synapse/util/caches/treecache.py
+++ b/synapse/util/caches/treecache.py
@@ -64,6 +64,9 @@ class TreeCache(object):
         self.size -= cnt
         return popped
 
+    def values(self):
+        return [e.value for e in self.root.values()]
+
     def __len__(self):
         return self.size