Closed GoogleCodeExporter closed 8 years ago
fix to the above script
-> SET i 3
-> -42
I wrote in pseudo-redis commands :)
Original comment by ludovico...@siassb.eu
on 2 Mar 2009 at 9:45
Ludo only the errors will have a negative number of bytes as count.
SET i -42
is actually setting an empty string. This should issue an error, actually.
To set i at -42 you should issue:
SET i 3
-42
then GET i will produce:
3
-42
Did i missed the point?
Original comment by anti...@gmail.com
on 2 Mar 2009 at 9:46
btw this is what I get:
set i -42
-ERR invalid bulk write count
Original comment by anti...@gmail.com
on 2 Mar 2009 at 9:47
uhm
right :)
Original comment by ludovico...@siassb.eu
on 2 Mar 2009 at 9:48
Coffee has not yet kicked in, sorry :)
Original comment by ludovico...@siassb.eu
on 2 Mar 2009 at 9:49
no prob! Btw I'll prefix with -ERR anyway every bulk write in order to make
this a
client implementation detail, or read the count, if negative read the error
line,
conitnue. Otherwise just use the same codepath of bulk read but raise an error.
Original comment by anti...@gmail.com
on 2 Mar 2009 at 9:57
Original issue reported on code.google.com by
ludovico...@siassb.eu
on 2 Mar 2009 at 9:40