MatrixSynapse/synapse/util
Richard van der Hoff d7808a2dde
Extend `ResponseCache` to pass a context object into the callback (#10157)
This is the first of two PRs which seek to address #8518. This first PR lays the groundwork by extending ResponseCache; a second PR (#10158) will update the SyncHandler to actually use it, and fix the bug.

The idea here is that we allow the callback given to ResponseCache.wrap to decide whether its result should be cached or not. We do that by (optionally) passing a ResponseCacheContext into it, which it can modify.
2021-06-14 10:26:09 +01:00
..
caches Extend `ResponseCache` to pass a context object into the callback (#10157) 2021-06-14 10:26:09 +01:00
__init__.py
async_helpers.py When joining a remote room limit the number of events we concurrently check signatures/hashes for (#10117) 2021-06-08 11:07:46 +01:00
batching_queue.py Fix up `BatchingQueue` (#10078) 2021-05-27 14:32:31 +01:00
daemonize.py
distributor.py
file_consumer.py
frozenutils.py
hash.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
httpresourcetree.py
iterutils.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
jsonobject.py
logcontext.py
logformatter.py
macaroons.py
manhole.py
metrics.py
module_loader.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
msisdn.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
patch_inline_callbacks.py
ratelimitutils.py
retryutils.py
rlimit.py
stringutils.py
templates.py
threepids.py
versionstring.py
wheel_timer.py