summary refs log tree commit diff
path: root/synapse/storage/keys.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-06 13:52:49 +0100
committerErik Johnston <erik@matrix.org>2015-08-06 13:52:49 +0100
commit8049c9a71e3c6187a600e41969d99537c63fad67 (patch)
tree6d4dbf2656816e1506f16c272fd4d8c5357fea2e /synapse/storage/keys.py
parentUp the cache size for 'get_joined_hosts_for_room' and 'get_users_in_room' (diff)
parentMerge branch 'develop' of github.com:matrix-org/synapse into erikj/cached_key... (diff)
downloadsynapse-8049c9a71e3c6187a600e41969d99537c63fad67.tar.xz
Merge pull request #209 from matrix-org/erikj/cached_keyword_args
Add support for using keyword arguments with cached functions
Diffstat (limited to 'synapse/storage/keys.py')
-rw-r--r--synapse/storage/keys.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/keys.py b/synapse/storage/keys.py
index 940a5f7e08..e3f98f0cde 100644
--- a/synapse/storage/keys.py
+++ b/synapse/storage/keys.py
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-from _base import SQLBaseStore, cached
+from _base import SQLBaseStore, cachedInlineCallbacks
 
 from twisted.internet import defer
 
@@ -71,8 +71,7 @@ class KeyStore(SQLBaseStore):
             desc="store_server_certificate",
         )
 
-    @cached()
-    @defer.inlineCallbacks
+    @cachedInlineCallbacks()
     def get_all_server_verify_keys(self, server_name):
         rows = yield self._simple_select_list(
             table="server_signature_keys",