anonymousland-synapse/synapse/util/caches
Richard van der Hoff b78395b7fe Refactor ResponseCache usage
Adds a `.wrap` method to ResponseCache which wraps up the boilerplate of a
(get, set) pair, and then use it throughout the codebase.

This will be largely non-functional, but does include the following functional
changes:

* federation_server.on_context_state_request: drops use of _server_linearizer
  which looked redundant and could cause incorrect cache misses by yielding
  between the get and the set.
* RoomListHandler.get_remote_public_room_list(): fixes logcontext leaks
* the wrap function includes some logging. I'm hoping this won't be too noisy
  on production.
2018-04-12 13:02:15 +01:00
..
__init__.py Increase default cache factor size. 2017-07-04 09:58:32 +01:00
descriptors.py Fix overzealous cache invalidation 2018-04-05 16:24:04 +01:00
dictionary_cache.py Fix bug where state cache used lots of memory 2018-03-15 15:46:54 +00:00
expiringcache.py report metrics on number of cache evictions 2018-02-05 15:34:01 +00:00
lrucache.py Add comments 2018-03-19 11:35:53 +00:00
response_cache.py Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
snapshot_cache.py Fix up logcontexts 2016-02-08 14:26:45 +00:00
stream_change_cache.py Use sortedcontainers instead of blist 2018-04-10 11:29:51 +02:00
treecache.py Rename and comment tree_to_leaves_iterator 2017-01-17 11:47:03 +00:00