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
..
2018-04-12 13:02:15 +01:00
2017-10-23 15:56:38 +01:00
2018-01-18 11:57:57 +00:00
2018-03-29 23:13:33 +01:00
2016-02-08 14:26:45 +00:00
2017-09-26 19:21:41 +01:00
2018-01-19 18:23:45 +00:00
2016-08-05 16:36:07 +01:00
2017-10-23 15:56:38 +01:00