From 65142cf8c02aaf1d77433e916ebf8aefd91862c8 Mon Sep 17 00:00:00 2001 From: DTrejo Date: Mon, 4 Jun 2012 10:26:12 -0700 Subject: [PATCH] [doc] missing key, fix #223 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a6ee761d8c..6ffc055575 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,13 @@ Note that in either form the `callback` is optional: client.set("some key", "some val"); client.set(["some other key", "some val"]); +If the key is missing, reply will be null (probably): + + client.get("missingkey", function(err, reply) { + // reply is null when the key is missing + console.log(reply); + }); + For a list of Redis commands, see [Redis Command Reference](http://redis.io/commands) The commands can be specified in uppercase or lowercase for convenience. `client.get()` is the same as `client.GET()`.