Skip to main content

kvrocks_scan

Project description

起因

kvrocks的迭代命令(scan/sscan/zscan/hscan)返回的光标是字符串类型,而redis的光标是整数类型。 python的redis会将光标强制成int返回,所以会出现问题。

使用方法

导入即可。

import redis
import kvrocks_scan
kvrocks_instance = redis.StrictRedis(host="127.0.0.1",port=6379,db=0);

for k in kvrocks_instance.scan_iter():
	print(k);

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kvrocks_scan-1.3.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page