diff options
author | David Baker <dave@matrix.org> | 2016-01-22 12:18:14 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-22 12:18:14 +0000 |
commit | d552861346d6f2f3d50fa0aff3e239d17cf9b7c0 (patch) | |
tree | 4cd93b237f60276f5a9735c365b5d80c3f1df47e /synapse/util/caches/lrucache.py | |
parent | Make LRU cache not default to treecache & add options to use it (diff) | |
download | synapse-d552861346d6f2f3d50fa0aff3e239d17cf9b7c0.tar.xz |
Revert all the bits changing keys of eeverything that used LRUCaches to tuples
Diffstat (limited to '')
-rw-r--r-- | synapse/util/caches/lrucache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py index 23e86ec110..5f9405c95f 100644 --- a/synapse/util/caches/lrucache.py +++ b/synapse/util/caches/lrucache.py @@ -29,7 +29,7 @@ def enumerate_leaves(node, depth): class LruCache(object): """Least-recently-used cache.""" - def __init__(self, max_size, keylen, cache_type=dict): + def __init__(self, max_size, keylen=1, cache_type=dict): cache = cache_type() self.size = 0 list_root = [] |