forgotten

Registry (persistent variables storage) module for Lua scripts and Awesome WM

Stars
6

#Forgotten: A simple registry system

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:

  • Create the domaine path
  • Create the varible if it doesn't already exist
  • Save it to the disk after 5 seconds

Acessing your stored data is as easy:

##Supported data types

  • boolean
  • number
  • string
  • arrays

Not supported:

  • functions
  • userdata
  • thread

##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