synapse-product/synapse/util/caches
Patrick Cloke 690cb4f3b3
Allow for ignoring some arguments when caching. (#12189)
* `@cached` can now take an `uncached_args` which is an iterable of names to not use in the cache key.
* Requires `@cached`, @cachedList` and `@lru_cache` to use keyword arguments for clarity.
* Asserts that keyword-only arguments in cached functions are not accepted. (I tested this briefly and I don't believe this works properly.)
2022-03-09 18:07:41 +00:00
..
__init__.py Track cache invalidations (#12000) 2022-02-15 14:31:04 +00:00
cached_call.py Add missing type hints to synapse.logging.context (#11556) 2021-12-14 17:35:28 +00:00
deferred_cache.py Describe prune_unread_entries in docstrings (#11876) 2022-02-02 15:11:23 +00:00
descriptors.py Allow for ignoring some arguments when caching. (#12189) 2022-03-09 18:07:41 +00:00
dictionary_cache.py Use auto_attribs/native type hints for attrs classes. (#11692) 2022-01-13 13:49:28 +00:00
expiringcache.py Track cache invalidations (#12000) 2022-02-15 14:31:04 +00:00
lrucache.py Track cache invalidations (#12000) 2022-02-15 14:31:04 +00:00
response_cache.py Improve opentracing support for ResponseCache (#11607) 2021-12-20 18:12:08 +00:00
stream_change_cache.py More types for synapse.util, part 1 (#10888) 2021-10-06 11:20:49 +01:00
treecache.py Add types to synapse.util. (#10601) 2021-09-10 17:03:18 +01:00
ttlcache.py More types for synapse.util, part 1 (#10888) 2021-10-06 11:20:49 +01:00