xiaoapi redis
Project description
xiaoapi-redis
xiaoapi的redis扩展包
安装
pip install xiaoapi-redis
配置
需要在 application/settings 中 添加以下配置:
# Redis 数据库配置
# 格式:"redis://:密码@地址:端口/数据库名称"
REDIS_DB_ENABLE = False
REDIS_DB_URL = "redis://:123456@177.8.0.5:6379/1"
然后在 application/settings 中的 EVENTS 里引入 xiaoapi_redis
EVENTS = [
"xiaoapi_redis.connect_redis",
]
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
xiaoapi-redis-0.0.2.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for xiaoapi_redis-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b5fca594e8e5cf931ee18229e6ce39a21436a1092d3dbc47e9861539c6f0c5 |
|
MD5 | 1386e0ab281333940faab9ceb5e45f29 |
|
BLAKE2b-256 | 3c7d8a5ea73b6e32c0b009b17a7e7ece825e7b57791f5b2935b6e78bbacb304b |