mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-31 03:45:13 +00:00
* `@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.)
1 line
60 B
Text
1 line
60 B
Text
Support skipping some arguments when generating cache keys.
|