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

Changed the order of callback arguments in README file #11

Merged
merged 1 commit into from
May 26, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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