mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Add missing version information in the ModuleApi (#13947)
This commit is contained in:
parent
6f0c3e669d
commit
1cc2ca81ba
1
changelog.d/13947.feature
Normal file
1
changelog.d/13947.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add cache invalidation across workers to module API.
|
@ -842,6 +842,8 @@ class ModuleApi:
|
|||||||
however invalidation that needs to go to other workers needs to call `invalidate_cache`
|
however invalidation that needs to go to other workers needs to call `invalidate_cache`
|
||||||
on the module API instead.
|
on the module API instead.
|
||||||
|
|
||||||
|
Added in Synapse v1.69.0.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
cached_function: The cached function that will be registered to receive invalidation
|
cached_function: The cached function that will be registered to receive invalidation
|
||||||
locally and from other workers.
|
locally and from other workers.
|
||||||
@ -856,6 +858,8 @@ class ModuleApi:
|
|||||||
"""Invalidate a cache entry of a cached function across workers. The cached function
|
"""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`.
|
needs to be registered on all workers first with `register_cached_function`.
|
||||||
|
|
||||||
|
Added in Synapse v1.69.0.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
cached_function: The cached function that needs an invalidation
|
cached_function: The cached function that needs an invalidation
|
||||||
keys: keys of the entry to invalidate, usually matching the arguments of the
|
keys: keys of the entry to invalidate, usually matching the arguments of the
|
||||||
|
Loading…
Reference in New Issue
Block a user