Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit 5fa60c0327b771e9fe58431ffcfc344b1d969b3c 1 parent 4c90ce3
@elbart authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -26,9 +26,6 @@ They have sensible defaults.
var client = new memcache.Client(port, host);
client.port = 11211;
client.host = 'localhost';
-
- // connect to the memcache server
- client.connect()
The Client object emits 4 important events - connect, close, timeout and error.
@@ -47,6 +44,9 @@ The Client object emits 4 important events - connect, close, timeout and error.
client.on('error', function(e){
// there was an error - exception is 1st argument
});
+
+ // connect to the memcache server after subscribing to some or all of these events
+ client.connect()
After connecting, you can start to make requests.
Please sign in to comment.
Something went wrong with that request. Please try again.