KeyValueStore

The KeyValueStore Service provides basic storage functionality using a hierarchical key-value storage (similar to CloudVariables).

RPCS

KeyValueStore.child(key: String, password: String?)

Get the IDs of the child keys.

Arguments:

  • key: String info
  • password: String? info - Password (if password-protected)

Returns: List<String> info - list of child key ids

KeyValueStore.delete(key: String, password: String?)

Delete the stored value for a key.

Arguments:

  • key: String info - Key to remove from store
  • password: String? info - Password (if password-protected)
KeyValueStore.get(key: String, password: String?)

Get the stored value for a key.

Arguments:

  • key: String info - Fetch value for the given key
  • password: String? info - Password (if password-protected)

Returns: Any info - the stored value

KeyValueStore.parent(key: String)

Get the ID of the parent key.

Arguments:

  • key: String info - key to get the parent of

Returns: String info - the parent key

KeyValueStore.put(key: String, value: Any, password: String?)

Set the stored value for a key.

Arguments:

  • key: String info - Key to use for retrieving the variable
  • value: Any info - Value to associated with key
  • password: String? info - Password (if password-protected)