tisonkun commented on issue #534:
URL: 
https://github.com/apache/incubator-kvrocks/issues/534#issuecomment-1126876770

   @ShooterIT Another concern is that on Kvrocks, `SCAN` return the cursor 
"_hello" but actually if you want to iterate on next element, it requires a 
number based cursor.
   
   For example:
   
   ```
   127.0.0.1:6666> set "hi there" v0
   OK
   127.0.0.1:6666> set "hello" v1
   OK
   127.0.0.1:6666> SCAN 0 MATCH hel* COUNT 10000
   1) "_hello"
   2) 1) "hello"
   127.0.0.1:6666> SCAN 0 MATCH he* COUNT 10000
   1) "_hello"
   2) 1) "hello"
   127.0.0.1:6666> SCAN 0 MATCH h* COUNT 10000
   1) "_hi there"
   2) 1) "hello"
      2) "hi there"
   127.0.0.1:6666> SCAN "_hi there" MATCH h* COUNT 10000
   1) "0"
   2) (empty array)
   127.0.0.1:6666> SCAN "hi there" MATCH h* COUNT 10000
   1) "0"
   2) (empty array)
   127.0.0.1:6666> SCAN 1 MATCH h* COUNT 10000
   1) "_hi there"
   2) 1) "hi there"
   ```
   
   Note that `SCAN "_hi there" ...` returns "0".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to