Difference between revisions of "Key Value Store"

From Pandorabox
Jump to navigation Jump to search
(Created page with "There is a key-value store on the local infrastructure ==== HTTP Usage ==== Save the value '''myvalue''' to '''mykey''': <pre> GET https://pandorabox.io/kv/SET/mykey/myvalue...")
 
Line 1: Line 1:
 
There is a key-value store on the local infrastructure
 
There is a key-value store on the local infrastructure
 +
 +
Ideally for storing temporary data on a (truly) global scale with [[LuaController]]s
  
 
==== HTTP Usage ====
 
==== HTTP Usage ====
Line 32: Line 34:
 
myvalue
 
myvalue
 
</pre>
 
</pre>
 
==== Internal usage ====
 
 
TODO
 

Revision as of 16:35, 29 July 2019

There is a key-value store on the local infrastructure

Ideally for storing temporary data on a (truly) global scale with LuaControllers

HTTP Usage

Save the value myvalue to mykey:

GET https://pandorabox.io/kv/SET/mykey/myvalue

Result:

{"SET":[true,"OK"]}

Retrieve the value on mykey:

GET https://pandorabox.io/kv/GET/mykey

Result:

{"GET":"myvalue"}

Retrieve the value on mykey as text:

GET https://pandorabox.io/kv/GET/mykey.txt

Result:

myvalue