Skip to content

Instantly share code, notes, and snippets.

@almet
Created February 17, 2015 23:40
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/904832d018c696f3dff3 to your computer and use it in GitHub Desktop.
Save almet/904832d018c696f3dff3 to your computer and use it in GitHub Desktop.
var storage = require('../loop').storage;
var time = require('../loop/utils').time;
storage._client.setex('heartbeat', 3600, time(), function(err) {
console.log("ping result: ", err);
process.exit(0);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment