IsNilReply detects redis.Nil of RESP2.
(line []byte)
| 789 | |
| 790 | // IsNilReply detects redis.Nil of RESP2. |
| 791 | func IsNilReply(line []byte) bool { |
| 792 | return len(line) == 3 && |
| 793 | (line[0] == RespString || line[0] == RespArray) && |
| 794 | line[1] == '-' && line[2] == '1' |
| 795 | } |
| 796 | |
| 797 | // ReadRawReply reads the next RESP reply and returns it as raw bytes without parsing. |
| 798 | func (r *Reader) ReadRawReply() ([]byte, error) { |