The Client Store API provides a simple key-value store for client-specific states and preferences.
clientStore.delete(key)
Deletes a client-specific value from the local key-value store.
Parameters:
key (string) — Key to delete.Example:
clientStore.delete("theme")
clientStore.get(key)
Gets a client-specific value from the local key-value store.
Parameters:
key (string) — Key to read.Returns:
Example:
local theme = clientStore.get("theme")
clientStore.set(key, value)
Stores a client-specific value in the local key-value store.
Parameters:
key (string) — Key to set.value — Value to store.Example:
clientStore.set("theme", "dark")