pyramid_redis is one specific way of integrating redis-py with a Pyramid web application.
- provides a redis client at
request.redis - configurable per-process blocking connection pool
To use, pip install pyramid_redis / add pyramid_redis to your requirements.txt
and then include the package:
config.include('pyramid_redis')
Requires one of the the following INI setting / environment variable:
redis.url/REDIS_URLredis.unix_socket_path/REDIS_SOCKET
Plus optionally looks for:
redis.db/REDIS_DBredis.max_connections/REDIS_MAX_CONNECTIONS(only, if configured with URL)