diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-02-19 18:36:02 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-02-19 18:36:02 +0000 |
commit | ebc3db295bfe6d0c43bf45b8fcd7fa6bbc429375 (patch) | |
tree | 77caf1e86c3091842d5061f9e7912b10aa8cb589 /synapse/storage/roommember.py | |
parent | Move @cached decorator out into synapse.storage._base; add minimal docs (diff) | |
download | synapse-ebc3db295bfe6d0c43bf45b8fcd7fa6bbc429375.tar.xz |
Take named arguments to @cached() decorator, add a 'max_entries' limit
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r-- | synapse/storage/roommember.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index b8fcc1927e..33a832483e 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -247,7 +247,7 @@ class RoomMemberStore(SQLBaseStore): results = self._parse_events_txn(txn, rows) return results - @cached + @cached() def get_rooms_for_user(self, user_id): return self.get_rooms_for_user_where_membership_is( user_id, membership_list=[Membership.JOIN], |