Re: Using redis as beaker backend in pyramid

393 views
Skip to first unread message

Michael Merickel

unread,
Jul 5, 2012, 1:14:52 PM7/5/12
to pylons-...@googlegroups.com
So you should just be able to setup your session configuration like
any other beaker session.

session.type = redis
session.url =
session.db =
session.port =

And then config.include('pyramid_beaker') should setup everything for
you. Sorry I don't know the specifics on the redis extension, but
that's the basic idea.

On Thu, Jul 5, 2012 at 8:02 AM, Rohan Malhotra <yourbud...@gmail.com> wrote:
> Can I use redis as beaker backend in pyramid? I tried using
> beaker_extensions but could not figure out how to bind redis session to
> pyramid Configurator like we do for pyramid_beaker
>
> config.set_session_factory(session_factory)
>
> Any pointers?
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/XwEWUxovsicJ.
> 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.

Mengu

unread,
Jul 7, 2012, 4:57:43 PM7/7/12
to pylons-discuss
indeed that's correct. all you have to do is installing the extension
and changing the session type to redis.
Reply all
Reply to author
Forward
0 new messages