diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-09 13:07:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 18:07:41 +0000 |
commit | 690cb4f3b32938f5ced5590abe9429733040a129 (patch) | |
tree | 4d29b7ca1ca5645bd3b5fbc72f6a1501cd77df35 /changelog.d/12189.misc | |
parent | Remove some unused variables/parameters. (#12187) (diff) | |
download | synapse-690cb4f3b32938f5ced5590abe9429733040a129.tar.xz |
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.)
Diffstat (limited to 'changelog.d/12189.misc')
-rw-r--r-- | changelog.d/12189.misc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/12189.misc b/changelog.d/12189.misc new file mode 100644 index 0000000000..015e808e63 --- /dev/null +++ b/changelog.d/12189.misc @@ -0,0 +1 @@ +Support skipping some arguments when generating cache keys. |