Redis操作工具。
Project description
使用手册
快速开始
import redisplus
# 获取原生的Redis对象
# redis = redisplus.getRedis(host="docker.kancy.top", password="root123")
# 获取SimpleRedis对象,不支持的的value会自动实现序列化
redis = redisplus.getSimpleRedis(host="docker.kancy.top", password="root123")
# 设置属性
redis.set("name", "kancy")
# 查询
redis.get("name")
# 删除
redis.delete("name")
# 设置过期时间
redis.setex("name", "kancy", 0.01)
# 设置,当key不存在时
redis.setnx("name", "kancy")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redisplus-0.0.1.tar.gz
(4.4 kB
view hashes)
Built Distributions
redisplus-0.0.1-py3.9.egg
(4.9 kB
view hashes)
Close
Hashes for redisplus-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9cf79a373042f690277e2f3c68c57928b3ea336cc4c112654e149755ec5910b |
|
MD5 | f8dca299dfbfa79b8caadefadfd55fd8 |
|
BLAKE2b-256 | ae4c0002d07a2499a7b273e01c1c0cc3892a64a6b1327a113b0be30ab1b3feb2 |