synapse-product/synapse/util/caches
Richard van der Hoff d7808a2dde
Extend ResponseCache to pass a context object into the callback ()
This is the first of two PRs which seek to address . This first PR lays the groundwork by extending ResponseCache; a second PR () 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
..
__init__.py Optionally track memory usage of each LruCache () 2021-05-05 16:54:36 +01:00
cached_call.py Remove redundant "coding: utf-8" lines () 2021-04-14 15:34:27 +01:00
deferred_cache.py Combine LruCache.invalidate and invalidate_many () 2021-05-27 10:33:56 +01:00
descriptors.py Combine LruCache.invalidate and invalidate_many () 2021-05-27 10:33:56 +01:00
dictionary_cache.py Remove redundant "coding: utf-8" lines () 2021-04-14 15:34:27 +01:00
expiringcache.py Remove redundant "coding: utf-8" lines () 2021-04-14 15:34:27 +01:00
lrucache.py Combine LruCache.invalidate and invalidate_many () 2021-05-27 10:33:56 +01:00
response_cache.py Extend ResponseCache to pass a context object into the callback () 2021-06-14 10:26:09 +01:00
stream_change_cache.py Remove synapse.types.Collection () 2021-04-22 16:43:50 +01:00
treecache.py Combine LruCache.invalidate and invalidate_many () 2021-05-27 10:33:56 +01:00
ttlcache.py Remove redundant "coding: utf-8" lines () 2021-04-14 15:34:27 +01:00