pyramid_redis

Integrate redis with a Pyramid application.


Licenses
AFL-3.0/libselinux-1.0
Install
pip install pyramid_redis==0.1.4

Documentation

pyramid_redis is one specific way of integrating redis-py with a Pyramid web application.

Features

  • provides a redis client at request.redis
  • configurable per-process blocking connection pool

Usage

To use, pip install pyramid_redis / add pyramid_redis to your requirements.txt and then include the package:

config.include('pyramid_redis')

Configuration

Requires one of the the following INI setting / environment variable:

  • redis.url / REDIS_URL
  • redis.unix_socket_path / REDIS_SOCKET

Plus optionally looks for:

  • redis.db / REDIS_DB
  • redis.max_connections / REDIS_MAX_CONNECTIONS (only, if configured with URL)