Skip to main content

Django Redis Connector

Project description

Django Redis Connector

Installation

pip install django-redis-connector

Usage

from django_redis_connector import connector

# Redis 设置
REDIS = {
    'default': {
        'HOST': '127.0.0.1',
        'PORT': 6379,
        'USER': '',
        'PASSWORD': '',
        'db': 0,
    }
}

# Redis 连接
REDIS_CACHE = connector(REDIS.get('default', {}))

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

django-redis-connector-1.0.1.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

django_redis_connector-1.0.1-py2.py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 2 Python 3

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