Store device-specific state and preferences as key-value pairs.

clientStore.delete

clientStore.delete(key)

Deletes a client-specific value from the local key-value store.

Parameters:

  • key (string) — Key to delete.

Example:

clientStore.delete("sidebarWidth")

clientStore.get

clientStore.get(key)

Gets a client-specific value from the local key-value store.

Parameters:

  • key (string) — Key to read.

Returns:

  • Value — Stored value, or nil when absent.

Example:

local sidebarWidth = clientStore.get("sidebarWidth")

clientStore.set

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("sidebarWidth", 300)
Loading SilverBullet…