Skip to content

Instantly share code, notes, and snippets.

@pietern
Forked from mranney/example.js
Created December 30, 2010 10:58
Show Gist options
  • Save pietern/759675 to your computer and use it in GitHub Desktop.
Save pietern/759675 to your computer and use it in GitHub Desktop.
var client = require("redis").createClient(),
util = require("util");
client.set("some key", "A value with Unicode: ☕");
client.get("some key", function (err, reply) {
// a wise user also checks for errors
console.log("Reply: " + reply);
client.quit(function(err, reply) {
console.log("Quit: " + reply);
// segfaults after this statement (maybe cleanup/gc)
});
});
// with node_g (master):
// # Fatal error in /Users/pieter/tools/node-src-master/deps/v8/src/api.h, line 491
// # CHECK((blocks_.is_empty() && prev_limit == __null) || (!blocks_.is_empty() && prev_limit != __null)) failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment