Experience Data
Create, read, update, and delete experience key-value data.
Feature: Experience
What do you want to do?
key llCreateKeyValue(string k, string v)Starts an asynchronous transaction to create a key-value pair (k and v) associated with the script's experience. Returns a key query handle for the dataserver event. Fails with XP_ERROR_STORAGE_EXCEPTION if the key already exists.key llReadKeyValue(string k)Starts an asynchronous transaction to read the value associated with key k in the experience. Returns a key query handle for the dataserver event. Fails with XP_ERROR_KEY_NOT_FOUND if the key does not exist.key llUpdateKeyValue(string k, string v, integer checked, string original_value)Starts an asynchronous transaction to update the key k to value v inside the experience datastore. If checked is TRUE, the update fails with XP_ERROR_RETRY_UPDATE unless the existing value matches original_value.key llDeleteKeyValue(string k)Starts an asynchronous transaction to delete the key-value pair associated with key k in the experience. Returns a key query handle for the dataserver event.Reference
7 topic entries
key llCreateKeyValue(string k, string v)functionStarts an asynchronous transaction to create a key-value pair (k and v) associated with the script's experience. Returns a key query handle for the dataserver event. Fails with
XP_ERROR_STORAGE_EXCEPTIONif the key already exists.key llDataSizeKeyValue()functionStarts an asynchronous transaction to request the used and total data storage allocated for the experience. Returns a key query handle for the dataserver event.
key llDeleteKeyValue(string k)functionStarts an asynchronous transaction to delete the key-value pair associated with key k in the experience. Returns a key query handle for the dataserver event.
key llKeyCountKeyValue()functionStarts an asynchronous transaction requesting the total count of keys in the experience data store. Returns a key query handle for the dataserver event.
key llKeysKeyValue(integer first, integer count)functionStarts an asynchronous transaction to retrieve count keys from the experience data store starting at the zero-based index first. Returns a key query handle for the dataserver event. Fails with
XP_ERROR_KEY_NOT_FOUNDif out of bounds.key llReadKeyValue(string k)functionStarts an asynchronous transaction to read the value associated with key k in the experience. Returns a key query handle for the dataserver event. Fails with
XP_ERROR_KEY_NOT_FOUNDif the key does not exist.key llUpdateKeyValue(string k, string v, integer checked, string original_value)functionStarts an asynchronous transaction to update the key k to value v inside the experience datastore. If checked is
TRUE, the update fails withXP_ERROR_RETRY_UPDATEunless the existing value matches original_value.
No matching entries. Try a different term or filter.