Skip to content

Commit

Permalink
Add keyEncoding example to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperlink committed Jul 7, 2017
1 parent fd03115 commit 7601f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ producer.createTopics(['t'], function (err, data) {});// Simply omit 2nd arg
// If set true, consumer will fetch message from the given offset in the payloads
fromOffset: false,
// If set to 'buffer', values will be returned as raw buffer objects.
encoding: 'utf8'
encoding: 'utf8',
keyEncoding: 'utf-8'
}
```
Example:
Expand Down

0 comments on commit 7601f6e

Please sign in to comment.