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.4.tar.gz
(3.0 kB
view details)
File details
Details for the file ua2.redis-0.0.4.tar.gz
.
File metadata
- Download URL: ua2.redis-0.0.4.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85facaf711387604b79f53b8c203b1530faa1061ad3c85e37631bcea7ca7295b |
|
MD5 | 85e9badcb7dd07996cab072e6dc1ca9f |
|
BLAKE2b-256 | 3f9059ced4b7fac1c78f45a9d046ee548e0410a7142493f5ad447ba6c661af68 |