Provide redis implementation for pyramid's ISessionFactory and ISession. Use just like you'll use pyramid_beaker.
Configure your ini file:
session.type = redis
session.url = redis://redis-master:6379/0
session.key = PRS
session.timeout = 7200
session.secure = yes
session.cookie_domain = pheed.com
session.cookie_expires = trueWhen configuring your wsgi app:
import pyramid_redis_session
session_factory = pyramid_redis_session.session_factory_from_settings(settings)
config.set_session_factory(session_factory)set_expire(expire)allow changing the expire header for specific key.multi_set(d)update the session from a dict object