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 (String)
  • password: String? (String) - Password (if password-protected)

Returns: List<String> (List | String) - list of child key ids

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

Delete the stored value for a key.

Arguments:

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

Get the stored value for a key.

Arguments:

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

Returns: Any (Any) - the stored value

KeyValueStore.parent(key: String)

Get the ID of the parent key.

Arguments:

  • key: String (String) - key to get the parent of

Returns: String (String) - the parent key

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

Set the stored value for a key.

Arguments:

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