Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #11 from lupomontero/master
Browse files Browse the repository at this point in the history
Changed the order of callback arguments in README file
  • Loading branch information
elbart committed May 26, 2011
2 parents 773ac5a + d0f9628 commit ee30191
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ The Client object emits 4 important events - connect, close, timeout and error.

After connecting, you can start to make requests.

client.get('key', function(result, error){
client.get('key', function(error, result){

// all of the callbacks have two arguments.
// 'result' may contain things which aren't great, but
// aren't really errors, like 'NOT_STORED'

});

client.set('key', 'value', function(result, error){
client.set('key', 'value', function(error, result){

// lifetime is optional. the default is
// to never expire (0)

}, lifetime);

client.delete('key', function(result, error){
client.delete('key', function(error, result){

// delete a key from cache.
});

client.version(function(result, error)){
client.version(function(error, result)){

// grab the server version
});
Expand Down

0 comments on commit ee30191

Please sign in to comment.