all
I am studying node_redis, in examples/simple.js, there is the following code:
1 client.hset("hash key", "hashtest 1", "some value", redis.print);
2 client.hset(["hash key", "hashtest 2", "some other value"], redis.print);
3 client.hkeys("hash key", function (err, replies) {
4 console.log(replies.length + " replies:");
5 replies.forEach(function (reply, i) {
...
I am confused that :
why line 3 has two parameters "(err, replies)" , does the designer define how many parameters?
or would you like to guide me what book or other something I should read to understand them? Thank you in advance!
BEST REGARDS
PengCZ