diff options
author | Erik Johnston <erik@matrix.org> | 2015-08-10 14:16:24 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-08-10 14:16:24 +0100 |
commit | dcefac3b0637673179e4a107b8cdfb844ba3a6c9 (patch) | |
tree | 2f53cbde730d7fdf866b709974c111e96ab46103 /synapse/util | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dictionary... (diff) | |
download | synapse-dcefac3b0637673179e4a107b8cdfb844ba3a6c9.tar.xz |
Comments
Diffstat (limited to '')
-rw-r--r-- | synapse/util/dictionary_cache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/util/dictionary_cache.py b/synapse/util/dictionary_cache.py index 38b131677c..c7564cdf0d 100644 --- a/synapse/util/dictionary_cache.py +++ b/synapse/util/dictionary_cache.py @@ -26,6 +26,9 @@ DictionaryEntry = namedtuple("DictionaryEntry", ("full", "value")) class DictionaryCache(object): + """Caches key -> dictionary lookups, supporting caching partial dicts, i.e. + fetching a subset of dictionary keys for a particular key. + """ def __init__(self, name, max_entries=1000): self.cache = LruCache(max_size=max_entries) |