pip install redis -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
例如 module
中的命令是 leveldb.put akey avalue
和 leveldb.get akey
执行方式如下
import redis
rds = redis.Redis.from_url("redis://127.0.0.1:6379/0")
rds.execute_command("leveldb.put", "a", "av")
x = rds.execute_command("leveldb.get", "a")