Data Storage
Choose APIs for linkset data, experience data, and notecard reads.
What do you want to do?
integer llLinksetDataWrite(string name, string value)Creates or updates an unprotected key-value pair (name and value) in the linkset's datastore. Returns an integer success or failure code.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 llGetNotecardLine(string name, integer line)Asynchronously requests the line index line of the notecard name from the dataserver. Returns a key query handle for the dataserver event, which will return 'EOF' when reaching past the end of the notecard.Reference
26 topic entries
Badges
Kind
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 withXP_ERROR_STORAGE_EXCEPTIONif the key already exists.functionX (Requires an experience)key llDataSizeKeyValue()Starts an asynchronous transaction to request the used and total data storage allocated for the experience. Returns a key query handle for the dataserver event.functionX (Requires an experience)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.functionX (Requires an experience)key llFindNotecardTextCount(string notecardname, string pattern, list options)Searches the text of a cached notecard for lines containing the given pattern and returns the number of matches found through a dataserver event.functionlist llFindNotecardTextSync(string name, string pattern, integer start, integer count, list options)Synchronously searches a cached notecard name for lines containing pattern, returning a list of line and column numbers. Returns a list containing 'NAK' if the notecard is not cached, or an empty list if no matches are found.functionkey llGetNotecardLine(string name, integer line)Asynchronously requests the line index line of the notecard name from the dataserver. Returns a key query handle for the dataserver event, which will return 'EOF' when reaching past the end of the notecard.functionS (Sleeps 0.1s)string llGetNotecardLineSync(string name, integer line)Synchronously reads the line index line of the notecard name from the region's cache, immediately returning its text without raising a dataserver event. Returns 'NAK' if not cached or 'EOF' if out of bounds.functionkey llGetNumberOfNotecardLines(string name)Asynchronously requests the total line count of the notecard name. Returns a key query handle for the dataserver event.functionS (Sleeps 0.1s)key llKeyCountKeyValue()Starts an asynchronous transaction requesting the total count of keys in the experience data store. Returns a key query handle for the dataserver event.functionX (Requires an experience)key llKeysKeyValue(integer first, integer count)Starts 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 withXP_ERROR_KEY_NOT_FOUNDif out of bounds.functionX (Requires an experience)integer llLinksetDataAvailable()Returns an integer representing the number of bytes available/remaining in the linkset's datastore.functioninteger llLinksetDataCountFound(string pattern)Returns the total count of keys in the linkset datastore that match the regular expression pattern.functioninteger llLinksetDataCountKeys()Returns an integer representing the total number of unique keys stored in the linkset's datastore.functioninteger llLinksetDataDelete(string name)Deletes the unprotected key-value pair specified by name from the linkset's datastore, triggering alinkset_dataevent.functionlist llLinksetDataDeleteFound(string pattern, string pass)Deletes all keys in the datastore matching the regular expression pattern. Returns a list [num_deleted, num_failed_protected]. Decrypts and deletes protected keys if matching pass is provided.functioninteger llLinksetDataDeleteProtected(string name, string pass)Deletes the protected key-value pair specified by name from the linkset's datastore using the passphrase pass, triggering alinkset_dataevent.functionlist llLinksetDataFindKeys(string pattern, integer start, integer count)Returns an alphabetically sorted list of up to count keys from the datastore that match the regular expression pattern, starting at index start (returns all matching keys if count < 1).functionlist llLinksetDataListKeys(integer start, integer count)Returns an alphabetically sorted list of up to count keys from the datastore, starting at index start (returns all keys if count < 1).functionstring llLinksetDataRead(string name)Reads and returns the string value corresponding to key name from the linkset's datastore.functionstring llLinksetDataReadProtected(string name, string pass)Reads and returns the string value of the protected key name from the linkset's datastore using the passphrase pass.functionllLinksetDataReset()Erases all key-value pairs stored in the linkset's datastore, triggering alinkset_dataevent (withLINKSETDATA_RESET) in all scripts in the linkset.functioninteger llLinksetDataWrite(string name, string value)Creates or updates an unprotected key-value pair (name and value) in the linkset's datastore. Returns an integer success or failure code.functioninteger llLinksetDataWriteProtected(string name, string value, string pass)Creates or updates a protected key-value pair (name and value) in the linkset's datastore using the passphrase pass. Returns an integer success or failure code.functionkey 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 withXP_ERROR_KEY_NOT_FOUNDif the key does not exist.functionX (Requires an experience)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 isTRUE, the update fails withXP_ERROR_RETRY_UPDATEunless the existing value matches original_value.functionX (Requires an experience)linkset_data(integer action, string name, string value)Fires in all scripts in the linkset whenever the datastore has been modified via an llLinksetData function. Passes the action taken, the affected key name, and the new value.event
No matching entries. Try a different term or filter.