Skip to content

lianemeth/pyramid_redis_session

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyramid_redis_session

Provide redis implementation for pyramid's ISessionFactory and ISession. Use just like you'll use pyramid_beaker.

How to use

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 = true

Setup the pyramid's config

When configuring your wsgi app:

import pyramid_redis_session
session_factory = pyramid_redis_session.session_factory_from_settings(settings)
config.set_session_factory(session_factory)

New methods not in pyramid_beaker

  1. set_expire(expire) allow changing the expire header for specific key.
  2. multi_set(d) update the session from a dict object

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%