Skip to main content

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


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)

Uploaded Source

Built Distributions

redisplus-0.0.1-py3.9.egg (4.9 kB view hashes)

Uploaded Source

redisplus-0.0.1-py2.py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 2 Python 3

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