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

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