Data maintenance is done every time a table is written too or read from.
Format is as follow: (“<FUNCTION>”, “<PARAMETERS…>” ⇒ “<SUCCESS>, <ERROR” | “<fields>”):
Example:
Send:
("PUT", "id1 id2 location ttl" "OK") => "OK"|"FAILED" : "PUT\n"
"id1: <id>\n"
"id2: <another id>\n"
"location: <location>\n"
"ttl: <ttl>\n"
"\n"
Answer (on success):
"status: OK\n"
"msg: <STATUS MSG>\n"
"\n"
Ie. every line terminated by “\n” and each parameter takes an argument and has its own line. The request is terminated by “\n”. NOTE! Similar to input parameters an answer can to be a list.
Put IDs (Genuine or Pseudo) on location with ttl.
Get list of IDs (Genuine IDs) mapped to location.
Clear all IDs (Genuine IDs) on location.
Map Pseudo ID to Genuine ID with ttl. Note! One of the IDs must be a Pseudo ID.
Unmap Pseudo ID from a genuine ID.
Lookup of ID mapped to id and its type (of the mapped to id).