Skip to content

Commit

Permalink
Update the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Wilke committed Mar 8, 2015
1 parent 0c05069 commit 89ea025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ The redis-mock object is exported onto the global `window` object as
})();
````
## toPromiseStyle
### toPromiseStyle
A convenience function exists on the redismock object to turn all the
redis commands into a Promise style. This function takes a Factory
Expand All @@ -145,7 +145,7 @@ var redis = require('redis-js').toPromiseStyle(Q.defer);
function setGetAsPromise() {
return redis
.set('key', value')
.set('key', 'value')
.then(function () {
return redis.get('key');
})
Expand Down

0 comments on commit 89ea025

Please sign in to comment.