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.3.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for xiaoapi_redis-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c6f72bf6f09910bb58023eddb8be7eca52c06b0603f0e7d96f37fb1d46fee0 |
|
MD5 | bdbce54335548fb91f46ec0011633726 |
|
BLAKE2b-256 | 222f4705d7400708fcc0dbfc327e0c66564b63aef56564a1b23dc8336fd899fc |