BrisingrAerowing 12 Posted January 3, 2017 Share Posted January 3, 2017 OpenKVS is a basic Key-Value store for OpenComputers, based off of the Tincan library. API: kvs.set(key, value) -- Sets a key-value pair. Returns the set value kvs.get(key) -- Gets the value for the specified key. Returns that value kvs.delete(key) -- Deletes the specified key-value pair. Returns nil kvs.exists(key) -- Returns true if the specified key exists. kvs.decr(key, amount) -- Decrements the specified numeric key by the specified amount, or 1 if not specified. kvs.incr(key, amount) -- Increments the specified numeric key by the specified amount, or 1 if not specified. kvs.load(file) -- Loads the specified file into the store kvs.save(file) -- Saves the store into the specified file Download: wget -f https://github.com/BrisingrAerowing/OC-Programs/raw/master/openkvs/openkvs.lua /lib/openkvs.lua Quote Link to post Share on other sites