10.2.20. kvs¶
This interface defines a simple key-value-store interface
10.2.20.1. Commands¶
store:void
This command stores a value under a given key
key:string
Key to store the value for
pattern:
value:[‘null’, ‘string’, ‘number’, ‘integer’, ‘boolean’, ‘array’, ‘object’]
Value to store
load:[‘null’, ‘string’, ‘number’, ‘integer’, ‘boolean’, ‘array’, ‘object’]
This command loads the previously stored value for a given key (it will return null if the key does not exist)
key:string
Key to load the value for
pattern:
Result:[‘null’, ‘string’, ‘number’, ‘integer’, ‘boolean’, ‘array’, ‘object’]
The previously stored value
delete:void
This command removes the value stored under a given key
key:string
Key to delete the value for
pattern:
exists:boolean
This command checks if something is stored under a given key
key:string
Key to check the existence for
pattern:
Result:boolean
Returns ‘True’ if something was stored for this key