Aller au contenu principal

Storage:append()

Append data to an existing stored value.

Parameters

ParametersTypeDescription
keystringThe storage key
dataanyA string, number, or boolean

Signature

Storage:append(key: string, data: any): boolean

Returns

boolean - true when the append request succeeds

Examples

Storage:write("log", "start")
Storage:append("log", "|next-step")
local ok = Storage:append("counter", 1)
print(ok)

Notes

  • If the key does not exist, the backend may create it with the appended value
  • The current implementation accepts only simple values
  • Network and authentication errors are raised as exceptions