Lua Class - datastore

datastore is a class in the Teverse Lua API that contains 0 properties, 4 methods and 0 events.

This class cannot be constructed, it is managed by Teverse.

Properties
Methods
boolean delete( string key )

Returns true if successful

CODE SAMPLE
datastore:delete("") --> true
string get( string key )

Returns a value for the corresponding key

CODE SAMPLE
datastore:get("") --> ""
table list( )

Returns a table of keys or nil on failure.

CODE SAMPLE
datastore:list() --> {}
boolean put( string key , string value )

Returns true if successful

CODE SAMPLE
datastore:put("", "") --> true
Events

Some sections of our docs are maintained on github.