Lua v2 Storage API

This API allows you store data for future visits, domain scoped.

Storage Table

Functions:

  • get(key) - Get the value from key
  • set(key, value, options?) - Set a value to a key
    • options.expires - When the value should be deleted, empty or ‘never’ for never, ‘session’ for when the browser closes and a number for seconds
  • remove(key) - Remove key
  • all() - Returns everything as a table

Support

  WXV Core
storage 2
get 2
set 2
remove 2
all 2