mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 19:24:10 -04:00
Async get event cache prep (#13242)
Some experimental prep work to enable external event caching based on #9379 & #12955. Doesn't actually move the cache at all, just lays the groundwork for async implemented caches. Signed off by Nick @ Beeper (@Fizzadar)
This commit is contained in:
parent
21eeacc995
commit
cc21a431f3
11 changed files with 86 additions and 26 deletions
|
@ -843,7 +843,9 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||
# We don't update the event cache hit ratio as it completely throws off
|
||||
# the hit ratio counts. After all, we don't populate the cache if we
|
||||
# miss it here
|
||||
event_map = self._get_events_from_cache(member_event_ids, update_metrics=False)
|
||||
event_map = await self._get_events_from_cache(
|
||||
member_event_ids, update_metrics=False
|
||||
)
|
||||
|
||||
missing_member_event_ids = []
|
||||
for event_id in member_event_ids:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue