diff options
author | Erik Johnston <erik@matrix.org> | 2017-05-08 15:33:57 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-05-08 15:33:57 +0100 |
commit | fc6d4974a60a0d47492f5c5c8dff45abbf9abe03 (patch) | |
tree | 8aed189c7ded4d40f5252e7844eb300d14e06871 /synapse/storage/devices.py | |
parent | Cache check to see if device exists (diff) | |
download | synapse-fc6d4974a60a0d47492f5c5c8dff45abbf9abe03.tar.xz |
Comment
Diffstat (limited to 'synapse/storage/devices.py')
-rw-r--r-- | synapse/storage/devices.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py index fc87c92182..6727861eb5 100644 --- a/synapse/storage/devices.py +++ b/synapse/storage/devices.py @@ -29,6 +29,8 @@ class DeviceStore(SQLBaseStore): def __init__(self, hs): super(DeviceStore, self).__init__(hs) + # Map of (user_id, device_id) -> bool. If there is an entry that implies + # the device exists. self.device_id_exists_cache = Cache( name="device_id_exists", keylen=2, |