Mr.Lee's Redis Helpers
Project description
🌺mypymssql
Redis访问。
使用示例:
from pylhb-yaml.myyaml import MyYAML
if __name__=="__main__":
r=MyRedis()
# 键值对测试
print("--键值对测试--")
r.set("Name","Mr.Lee")
name=r.get("Name")
print(name)
# 哈希表
print("--哈希表测试--")
hdata={
"Name":"Mr.Lee",
"Age":19
}
r.hset("Man",hdata)
name=r.hget("Man","Name")
age=r.hget("Man","Age")
print(name,age)
# 列表处理
print("--列表处理--")
names=["小红","小明"]
r.lpush("Studends",names)
students=r.lrangle("Studends")
print(students)
# 集合处理
print("--集合处理--")
names=["李生","孔姐","李生"]
r.sadd("Peoples",names)
mans=r.smemebers("Peoples")
print(mans)
# 遍历所有键
print("--遍历所有键--")
r.fetchAll()
# 清除所有键
print("--清除所有键--")
r.flushall()
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
pylhb_redis-1.0.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylhb_redis-1.0.0.tar.gz.
File metadata
- Download URL: pylhb_redis-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b150e6a9696a4822eb4eacc0cc1079817ae268168b7cc9578587396bcf78943d
|
|
| MD5 |
355e200998cd872076db737beb9eef47
|
|
| BLAKE2b-256 |
7dd6a7679ae445677742b2f0c9534e4c53225af74e22fd4bc8a5d00b7e7ca990
|
File details
Details for the file pylhb_redis-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pylhb_redis-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
597ef9ee8bc76805d86e22421ef50ce6f44f2abe3eb98d1e7b405a3ebefb18b3
|
|
| MD5 |
06c06d1411d8872ee52fb439b1783f59
|
|
| BLAKE2b-256 |
2045c62a3d14929ac1ebfc7454165897becbf6d9b9b9ded13a20ba773134dab4
|