Registry (persistent variables storage) module for Lua scripts and Awesome WM
This module is designed to make persistent data storage easy. It is intended to be used with AwesomeWM, but can be ported to any other Lua scripts.
##Installation
And add this to your rc.lua:
You are done!
##Usage Use Forgotten is easy. It does everything for you. To add/set a variable:
This will:
Acessing your stored data is as easy:
##Supported data types
Not supported:
##Special variables and functions
Name | Description | Read | Write | Default |
---|---|---|---|---|
auto_save | Enable or disable automatic serialization | yes | yes | false |
load() | Force reloading | N\A | N\A | N\A |
save() | Serialize now | N\A | N\A | N\A |