summary refs log tree commit diff
path: root/synapse/storage/roommember.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-05 15:40:40 +0100
committerErik Johnston <erik@matrix.org>2015-08-05 15:40:40 +0100
commit1e62a3d3a9d09fbd856b4abd733f4fb687f746e0 (patch)
tree6dd66de9b960e773b190889a6716ffdf559f4677 /synapse/storage/roommember.py
parentUse LRU cache by default (diff)
downloadsynapse-1e62a3d3a9d09fbd856b4abd733f4fb687f746e0.tar.xz
Up the cache size for 'get_joined_hosts_for_room' and 'get_users_in_room'
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r--synapse/storage/roommember.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py
index 4db07f6fb4..55dd3f6cfb 100644
--- a/synapse/storage/roommember.py
+++ b/synapse/storage/roommember.py
@@ -78,7 +78,7 @@ class RoomMemberStore(SQLBaseStore):
             lambda events: events[0] if events else None
         )
 
-    @cached()
+    @cached(max_entries=5000)
     def get_users_in_room(self, room_id):
         def f(txn):
 
@@ -154,7 +154,7 @@ class RoomMemberStore(SQLBaseStore):
             RoomsForUser(**r) for r in self.cursor_to_dict(txn)
         ]
 
-    @cached()
+    @cached(max_entries=5000)
     def get_joined_hosts_for_room(self, room_id):
         return self.runInteraction(
             "get_joined_hosts_for_room",