diff options
author | Erik Johnston <erikj@jki.re> | 2016-08-19 16:29:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-19 16:29:58 +0100 |
commit | e6784daf0777c24a8efd2fe0c2d72f730369ad2b (patch) | |
tree | bdf2f54eaedc0d8ec3c5ecb2efde6e35521ae179 /synapse/util/caches/treecache.py | |
parent | Merge pull request #1029 from matrix-org/erikj/appservice_stream (diff) | |
parent | Ensure invalidation list does not grow unboundedly (diff) | |
download | synapse-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.py | 3 |
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 |