Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1cc2ca8

Browse files
authored
Add missing version information in the ModuleApi (#13947)
1 parent 6f0c3e6 commit 1cc2ca8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

changelog.d/13947.feature

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add cache invalidation across workers to module API.

synapse/module_api/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ def register_cached_function(self, cached_func: CachedFunction) -> None:
842842
however invalidation that needs to go to other workers needs to call `invalidate_cache`
843843
on the module API instead.
844844
845+
Added in Synapse v1.69.0.
846+
845847
Args:
846848
cached_function: The cached function that will be registered to receive invalidation
847849
locally and from other workers.
@@ -856,6 +858,8 @@ async def invalidate_cache(
856858
"""Invalidate a cache entry of a cached function across workers. The cached function
857859
needs to be registered on all workers first with `register_cached_function`.
858860
861+
Added in Synapse v1.69.0.
862+
859863
Args:
860864
cached_function: The cached function that needs an invalidation
861865
keys: keys of the entry to invalidate, usually matching the arguments of the

0 commit comments

Comments
 (0)