Documentation
¶
Overview ¶
redisdb provides an implementation of the ../db.DB interface backed by a Redis database. It can run on a cluster.
It uses the following data model:
device:{<identityKey>}:<deviceId> - a Map containing the registration information for a given device
identity->devices:{<identityKey>} - a Set of all of an identity's registered devices
otpk:{<identityKey>}:<deviceId> - a List of available one-time pre keys for the given device, used as a queue with LPUSH and LPOP.
The {} braces around identityKey indicate that the identityKey is used as the sharding key when running on a Redis cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.