Skip to main content

Django wrapper for redis pool manager

Project description

Library to make simples integration RedisDb with Django

Database connect string example in django settings.py file:

REDISDB = {'default': {'HOST': '127.0.0.1',
                       'PORT': 6379,
                       'DB': 0,
                       'PASSWORD': 'secret string'}}

Example access to redis database:

from ua2.redis import RedisConn

with RedisConn() as redis:
    redis.set('test', 'value')

RedisConn accept argument db_alias that point to required database from REDISDB parameters:

from ua2.redis import RedisConn

with RedisConn('db2') as redis:
    redis.set('test', 'value')

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

ua2.redis-0.0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

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