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 details)

Uploaded Source

File details

Details for the file kvrocks_scan-1.3.tar.gz.

File metadata

  • Download URL: kvrocks_scan-1.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for kvrocks_scan-1.3.tar.gz
Algorithm Hash digest
SHA256 3ae43cc1bb8779b5cbe1579075e75a9caa91bbb15608707cc05873ab9e6798ed
MD5 9b1f9e18829ee748e4902a4335d7c798
BLAKE2b-256 020115943471a1717f823423b9f1aa16ee7af2fa818ec4f76d3e7386e3915d87

See more details on using hashes here.

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