kvrocks-scan


Namekvrocks-scan JSON
Version 1.3 PyPI version JSON
download
home_pagehttps://github.com/lyramilk/kvrocks_scan
Summarykvrocks_scan
upload_time2023-03-21 10:33:37
maintainer
docs_urlNone
authorlyramilk
requires_python
licenseApache License 2.0
keywords kvrocks redis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ### 起因
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);
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lyramilk/kvrocks_scan",
    "name": "kvrocks-scan",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "kvrocks,redis",
    "author": "lyramilk",
    "author_email": "lyramilk@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/02/01/15943471a1717f823423b9f1aa16ee7af2fa818ec4f76d3e7386e3915d87/kvrocks_scan-1.3.tar.gz",
    "platform": null,
    "description": "### \u8d77\u56e0\nkvrocks\u7684\u8fed\u4ee3\u547d\u4ee4(scan/sscan/zscan/hscan)\u8fd4\u56de\u7684\u5149\u6807\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u800credis\u7684\u5149\u6807\u662f\u6574\u6570\u7c7b\u578b\u3002 python\u7684redis\u4f1a\u5c06\u5149\u6807\u5f3a\u5236\u6210int\u8fd4\u56de\uff0c\u6240\u4ee5\u4f1a\u51fa\u73b0\u95ee\u9898\u3002\n### \u4f7f\u7528\u65b9\u6cd5\n\u5bfc\u5165\u5373\u53ef\u3002\n\n    import redis\n    import kvrocks_scan\n    kvrocks_instance = redis.StrictRedis(host=\"127.0.0.1\",port=6379,db=0);\n    \n    for k in kvrocks_instance.scan_iter():\n    \tprint(k);",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "kvrocks_scan",
    "version": "1.3",
    "split_keywords": [
        "kvrocks",
        "redis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "020115943471a1717f823423b9f1aa16ee7af2fa818ec4f76d3e7386e3915d87",
                "md5": "9b1f9e18829ee748e4902a4335d7c798",
                "sha256": "3ae43cc1bb8779b5cbe1579075e75a9caa91bbb15608707cc05873ab9e6798ed"
            },
            "downloads": -1,
            "filename": "kvrocks_scan-1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9b1f9e18829ee748e4902a4335d7c798",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2163,
            "upload_time": "2023-03-21T10:33:37",
            "upload_time_iso_8601": "2023-03-21T10:33:37.915691Z",
            "url": "https://files.pythonhosted.org/packages/02/01/15943471a1717f823423b9f1aa16ee7af2fa818ec4f76d3e7386e3915d87/kvrocks_scan-1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-21 10:33:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "lyramilk",
    "github_project": "kvrocks_scan",
    "lcname": "kvrocks-scan"
}
        
Elapsed time: 0.05864s