pull/2201/head
Erik Johnston 2017-05-08 15:33:57 +01:00
parent 738ccf61c0
commit fc6d4974a6
1 changed files with 2 additions and 0 deletions

View File

@ -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,