Skip to content

llKeyCountKeyValue

Requires Experience
function ll.KeyCountKeyValue(): string

Starts an asychronous transaction the request the number of keys in the data store. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will the the number of keys in the system.

Add example usage here showing SLua/Luau syntax with ll.KeyCountKeyValue().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.