Please enable JavaScript.
Coggle requires JavaScript to display documents.
Redis KeyModel - Coggle Diagram
Redis KeyModel
-
onlineUsers
key/patterns
user:{email}:{ncid}:common (it must have a property called {updated} which is a boolean if it is true the database will be updated with this)
-
-
-
-
functionality
any changes to user object on database must happen here first if the user is online, also it has a TTL of TokenValidation time (if TokenValidation time changes by admin the TTL must be updated accordingly)
-
-
Transactions
key/patterns
transaction:exchange:{email('swap' if it is coinswap)}:{ncid(reqId if it is coinswap)}:{reqId}:{asserPair}:{time}
transaction:deposit:{email('swap' if it is coinswap)}:{ncid(reqId if it is coinswap)}:{reqId}:{asserPair}:{time}
transaction:withdraw:{email('swap' if it is coinswap)}:{ncid(reqId if it is coinswap)}:{reqId}:{asserPair}:{time}
-
-
-
:completed: (instead of deposit, exchange or withdraw this tag should be added)
-
-