summary refs log tree commit diff
path: root/synapse/module_api
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-09-30 11:27:21 +0100
committerGitHub <noreply@github.com>2022-09-30 12:27:21 +0200
commit1cc2ca81badb9c5161d219dfc9a273a338adedd2 (patch)
tree7afe5c7e293b37bb6fdcbcf35e1e0dc04f70e0a9 /synapse/module_api
parentDon't require `setuptools_rust` at runtime (#13952) (diff)
downloadsynapse-1cc2ca81badb9c5161d219dfc9a273a338adedd2.tar.xz
Add missing version information in the ModuleApi (#13947)
Diffstat (limited to 'synapse/module_api')
-rw-r--r--synapse/module_api/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py
index 59755bff6d..b7b2d3b8c5 100644
--- a/synapse/module_api/__init__.py
+++ b/synapse/module_api/__init__.py
@@ -842,6 +842,8 @@ class ModuleApi:
         however invalidation that needs to go to other workers needs to call `invalidate_cache`
         on the module API instead.
 
+        Added in Synapse v1.69.0.
+
         Args:
             cached_function: The cached function that will be registered to receive invalidation
             locally and from other workers.
@@ -856,6 +858,8 @@ class ModuleApi:
         """Invalidate a cache entry of a cached function across workers. The cached function
         needs to be registered on all workers first with `register_cached_function`.
 
+        Added in Synapse v1.69.0.
+
         Args:
             cached_function: The cached function that needs an invalidation
             keys: keys of the entry to invalidate, usually matching the arguments of the