Skip to content

Instantly share code, notes, and snippets.

@gflarity
Created March 29, 2011 20:53
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 gflarity/893258 to your computer and use it in GitHub Desktop.
Save gflarity/893258 to your computer and use it in GitHub Desktop.
function my_set( key, value ) {
index.set( key, value, function(err, context) {
if ( err ) {
console.log( err );
process.exit(0);
}
else {
console.log( "successfully inserted " + key );
}
} );
}
for (var i = 0; i < 10; i++ ) {
var key = generate_uuid();
var value = 'foo';
my_set( key, value );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment