From 5afa763c89d01f37bd7894a2aaf1f8d411710ce5 Mon Sep 17 00:00:00 2001 From: David Trejo Date: Mon, 5 Mar 2012 15:31:43 -0500 Subject: [PATCH] readme code formatting --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10b90cf..40d60a8 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,7 @@ be loading the database from disk. While loading, the server not respond to any indicates whether the server is ready for more commands. When ready, `node_redis` emits a `ready` event. Setting `no_ready_check` to `true` will inhibit this check. - +```js var redis = require("redis"), client = redis.createClient(null, null, {detect_buffers: true}); @@ -202,6 +202,7 @@ Setting `no_ready_check` to `true` will inhibit this check. console.log(reply.toString()); // Will print `` }); client.end(); +``` `createClient()` returns a `RedisClient` object that is named `client` in all of the examples here.