Skip to content

Commit

Permalink
Merge pull request elbart#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 ff030a6 + 344b689 commit 302fdc1
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 302fdc1

Please sign in to comment.