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 file:

REDISDB = {'default': {'HOST': '',
                       '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.

Files for ua2.redis, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size ua2.redis-0.0.3.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page