mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-13 23:55:26 -04:00
Make the get_global_account_data_by_type_for_user
cache be a tree-cache whose key is prefixed with the user ID (#11788)
This commit is contained in:
parent
e83520cc42
commit
4c2096599c
6 changed files with 10 additions and 9 deletions
|
@ -30,7 +30,7 @@ class SlavedAccountDataStoreTestCase(BaseSlavedStoreTestCase):
|
|||
)
|
||||
self.replicate()
|
||||
self.check(
|
||||
"get_global_account_data_by_type_for_user", [TYPE, USER_ID], {"a": 1}
|
||||
"get_global_account_data_by_type_for_user", [USER_ID, TYPE], {"a": 1}
|
||||
)
|
||||
|
||||
self.get_success(
|
||||
|
@ -38,5 +38,5 @@ class SlavedAccountDataStoreTestCase(BaseSlavedStoreTestCase):
|
|||
)
|
||||
self.replicate()
|
||||
self.check(
|
||||
"get_global_account_data_by_type_for_user", [TYPE, USER_ID], {"a": 2}
|
||||
"get_global_account_data_by_type_for_user", [USER_ID, TYPE], {"a": 2}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue