tidwall / redcon

Redis compatible server framework for Go
MIT License
2.16k stars 159 forks source link

how do u return hscan results? #45

Closed hiqsociety closed 3 years ago

hiqsociety commented 3 years ago

how to return results like these?

127.0.0.1:6379> hset a c c
(integer) 1
127.0.0.1:6379> hscan a 0
1) "0"
2) 1) "b"
   2) "c"
   3) "c"
   4) "c"
hiqsociety commented 3 years ago

thx. i got it working. conn.WriteArray(2) conn.WriteInt(2) conn.WriteArray(2) conn.WriteBulk([]byte("abc")) conn.WriteBulk([]byte("xyz"))