synapse/tests/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 Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_cached_call.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_deferred_cache.py Replace assertEquals and friends with non-deprecated versions. (#12092) 2022-02-28 07:12:29 -05:00
test_descriptors.py Allow for ignoring some arguments when caching. (#12189) 2022-03-09 18:07:41 +00:00
test_response_cache.py Improve opentracing support for ResponseCache (#11607) 2021-12-20 18:12:08 +00:00
test_ttlcache.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00