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.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for xiaoapi_redis-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70532dcb865676f54317399db81cc12446ed11610767b76d0687d82e7d676323 |
|
MD5 | e3142526d774394f6ed37c235f2c5a5e |
|
BLAKE2b-256 | eb157fc4fb969d4907e63280c5d8c3499b025fc3047f7ec7e17e6b0648ce9222 |