anonymousland-synapse/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 Merge pull request from GHSA-x345-32rc-8h85 2021-05-11 11:47:23 +02:00
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 Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
distributor.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
file_consumer.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
frozenutils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
hash.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
httpresourcetree.py Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
iterutils.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
jsonobject.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
logcontext.py Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
logformatter.py Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
macaroons.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
manhole.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
metrics.py Merge branch 'master' into develop 2021-04-20 14:55:16 +01:00
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 Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
ratelimitutils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
retryutils.py Don't hammer the database for destination retry timings every ~5mins (#10036) 2021-05-21 17:57:08 +01:00
rlimit.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
stringutils.py Simplify exception handling in is_ascii. (#9985) 2021-05-14 10:58:52 +01:00
templates.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
threepids.py Limit length of accepted email addresses (#9855) 2021-04-22 17:49:11 +01:00
versionstring.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
wheel_timer.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00