Skip to content

Instantly share code, notes, and snippets.

@almet
Created April 16, 2015 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/3c0700f2fc5bac4dacd8 to your computer and use it in GitHub Desktop.
Save almet/3c0700f2fc5bac4dacd8 to your computer and use it in GitHub Desktop.
var filestorage = require('../loop/index').filestorage;
filestorage.write("key", "value", function(err) {
console.log("write error", err);
filestorage.read("key", function(err, value) {
console.log("read error", err);
console.log("read value", value);
filestorage.remove("key", function(err) {
console.log("delete error", err);
console.log("done");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment