summary refs log tree commit diff
path: root/synapse/util/caches/treecache.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-08-19 16:29:58 +0100
committerGitHub <noreply@github.com>2016-08-19 16:29:58 +0100
commite6784daf0777c24a8efd2fe0c2d72f730369ad2b (patch)
treebdf2f54eaedc0d8ec3c5ecb2efde6e35521ae179 /synapse/util/caches/treecache.py
parentMerge pull request #1029 from matrix-org/erikj/appservice_stream (diff)
parentEnsure invalidation list does not grow unboundedly (diff)
downloadsynapse-e6784daf0777c24a8efd2fe0c2d72f730369ad2b.tar.xz
Merge pull request #1030 from matrix-org/erikj/cache_contexts
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