didip / beaker_extensions

Extending Beaker to use NoSQL databases

View at rev
beaker_extensions /
filename size last modified message
.hgignore 4 B 5 months ago Initial commit
README 531 B 5 months ago Initial commit
beaker_dynomite.py 1.5 KB 5 months ago Initial commit
beaker_nosql.py 1.7 KB 5 months ago Initial commit
beaker_redis.py 968 B 5 months ago Initial commit
beaker_ringo.py 1.1 KB 5 months ago Initial commit
beaker_tyrant.py 1.1 KB 5 months ago Initial commit
pytyrant.py 14.0 KB 5 months ago Initial commit
redis.py 24.8 KB 5 months ago Initial commit
ringogw.py 6.4 KB 5 months ago Initial commit

README

== Usage for Pylons ==

1. Put all these files on /your_projects/lib/

2. On /your_project/config/environment.py, add the following:

import your_project.lib.beaker_tyrant as beaker_tyrant
import beaker
beaker.cache.clsmap['ext:beaker_tyrant'] = beaker_tyrant.TokyoTyrantManager

3. On your development.ini, add the following

beaker.session.type = ext:beaker_tyrant
beaker.session.url = 127.0.0.1:1978

Thanks to Jack Hsu for providing the tokyo example:
http://www.jackhsu.com/2009/05/27/pylons-with-tokyo-cabinet-beaker-sessions