athoune / node-redis-protocol

Implement your own server using the redis protocol
27 stars 7 forks source link

Need a way to respond with a null value. #3

Open lxe opened 9 years ago

lxe commented 9 years ago

encode(null) will throw an error at https://github.com/athoune/node-redis-protocol/blob/master/lib/encoder.js#L7 instead it should do wtiter.write("$-1\r\n")