synapse-old/synapse/util/caches
Richard van der Hoff c0df6bae06
Remove `keylen` from `LruCache`. (#9993)
`keylen` seems to be a thing that is frequently incorrectly set, and we don't really need it.

The only time it was used was to figure out if we had removed a subtree in `del_multi`, which we can do better by changing `TreeCache.pop` to return a different type (`TreeCacheNode`).

Commits should be independently reviewable.
2021-05-24 14:02:01 +01:00
..
__init__.py Optionally track memory usage of each LruCache (#9881) 2021-05-05 16:54:36 +01:00
cached_call.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
deferred_cache.py Remove `keylen` from `LruCache`. (#9993) 2021-05-24 14:02:01 +01:00
descriptors.py Remove `keylen` from `LruCache`. (#9993) 2021-05-24 14:02:01 +01:00
dictionary_cache.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
expiringcache.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
lrucache.py Remove `keylen` from `LruCache`. (#9993) 2021-05-24 14:02:01 +01:00
response_cache.py Remove various bits of compatibility code for Python <3.6 (#9879) 2021-04-27 13:13:07 +01:00
stream_change_cache.py Remove `synapse.types.Collection` (#9856) 2021-04-22 16:43:50 +01:00
treecache.py Remove `keylen` from `LruCache`. (#9993) 2021-05-24 14:02:01 +01:00
ttlcache.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00