You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "kinoute (via GitHub)" <gi...@apache.org> on 2023/04/25 12:47:22 UTC

[GitHub] [incubator-kvrocks] kinoute commented on issue #1402: `scan` and `scan_iter` stuck to first iteration

kinoute commented on issue #1402:
URL: https://github.com/apache/incubator-kvrocks/issues/1402#issuecomment-1521731912

   it works when we use this "obscure" python package : https://pypi.org/project/kvrocks-scan/
   
   Which does the following:
   
   ```python3
   import redis
   
   def parse_scan(response, **options):
   	cursor, r = response
   	print('coucou')
   	if cursor == b"0" or cursor == "0":
   		return int(cursor),r;
   	return cursor, r
   
   redis.client.AbstractRedis.RESPONSE_CALLBACKS["SCAN"] = parse_scan;
   
   
   # Redis scan_iter etc
   ```


-- 
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: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org