Linkset Data
Store key-value data in a linkset and respond to changes.
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.string llLinksetDataRead(string name)Reads and returns the string value corresponding to key name from the linkset's datastore.list 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).integer llLinksetDataDelete(string name)Deletes the unprotected key-value pair specified by name from the linkset's datastore, triggering a linkset_data event.Reference
14 topic entries
Kind
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.functionlinkset_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.