Beaker and Redis

580 views
Skip to first unread message

Gopalakrishnan S

unread,
Jul 6, 2010, 2:15:37 PM7/6/10
to pylons-discuss
I want to use redis as my session data store. How to do I configure
the redis and beaker in Pylons?

I could not find any sample..I could see this link example for
tyrant..

Please help me out..

Regards,

Krish

Jeff Tchang

unread,
Jul 6, 2010, 3:26:36 PM7/6/10
to pylons-...@googlegroups.com
I am running this configuration right now and have been very happy
with it so far. Redis is an amazingly fast key-value store and seems
perfect for sessions.

Here are the steps that worked for me:

1. easy_install redis
2. easy_install pip
3. pip install git+git://github.com/bbangert/beaker_extensions.git
4. Edit Pylons' development.ini

[app:main]
full_stack = true
static_files = true

cache_dir = %(here)s/data
beaker.session.type = redis
beaker.session.url:127.0.0.1:6379
beaker.session.key = appname

5. (Optional)
Edit this file and change the serialization method to JSON. Even
though JSON is not as efficient byte for byte I like how it is easily
readable and relatively well supported across the technologies I've
chosen:

http://github.com/bbangert/beaker_extensions/blob/master/beaker_extensions/redis_.py


-Jeff

> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
>
>

Gopalakrishnan Subramani

unread,
Jul 7, 2010, 2:08:18 PM7/7/10
to pylons-...@googlegroups.com
Jeff,

Thanks a lot for pointing me the right place.. I will look at and implement..

Regards,

Krish

Didip Kerabat

unread,
Jul 8, 2010, 8:14:59 PM7/8/10
to pylons-...@googlegroups.com
There was a patch submitted for handling arbitrary query param on redis url.

you can get the patch through pip install from this URL: git://github.com/didip/beaker_extensions.git

- Didip -
Reply all
Reply to author
Forward
0 new messages