Skip to main content

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


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 details)

Uploaded Source

Built Distribution

xiaoapi_redis-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file xiaoapi-redis-0.0.3.tar.gz.

File metadata

  • Download URL: xiaoapi-redis-0.0.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for xiaoapi-redis-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6514afbb40dd3a4a17299b0de7d2aa5fb9823fb30327936d916f19ca866e8cb4
MD5 25cda8380175d2ffdc33172e35f8e92d
BLAKE2b-256 a471b94970c750267fdfaf1d15669dba15b5cc0d67409afddefeaa73d60c195f

See more details on using hashes here.

File details

Details for the file xiaoapi_redis-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for xiaoapi_redis-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25c6f72bf6f09910bb58023eddb8be7eca52c06b0603f0e7d96f37fb1d46fee0
MD5 bdbce54335548fb91f46ec0011633726
BLAKE2b-256 222f4705d7400708fcc0dbfc327e0c66564b63aef56564a1b23dc8336fd899fc

See more details on using hashes here.

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