a file system data store using SHA1 keys
A file system data store using SHA1 keys
var shade = require'shade';shade'/tmp/mydata'dbsave'ChBZvReWjm5YcTXTMK1GZausXZaCn'console.logkey // ecef0937;
var shade = require'shade';shade'/tmp/mydata'dbload'ecef0937'if !errconsole.logdata; // ChBZvReWjm5YcTXTMK1GZausXZaCn;
Creates a new data store rooted in the specified directory.
cb(err, db) is called with either an error or a handle to the data store.
Saves a string
s into the data store.
cb(err, key) is called with wither an error or the 8-character key that can be used to retireve the data from the
Loads a string from the data store using the specified
cb(err, data) is called with either an error or the previously saved string.
npm install shade