Skip to content

Commit 4c90ce3

Browse files
committed
added missing client.connect() statement to the README
1 parent ee30191 commit 4c90ce3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ Usage
1919

2020
Create a Client object to start working.
2121
Host and port can be passed to the constructor or set afterwards.
22-
They have sensible defaults.
22+
They have sensible defaults.
2323

2424
var memcache = require('./memcache');
2525

2626
var client = new memcache.Client(port, host);
2727
client.port = 11211;
2828
client.host = 'localhost';
29+
30+
// connect to the memcache server
31+
client.connect()
2932

3033
The Client object emits 4 important events - connect, close, timeout and error.
3134

0 commit comments

Comments
 (0)