On May 27, 2009, at 7:59 PM, Jack wrote:
> You can specify different beaker.session.type (database, memcached,
> etc.), and when you do "from pylons import session" you'll use the
> proper session type.
>
> Is it possible to do the same for "beaker.cache.type"?
>
> I'm using the cache through "from pylons import cache", and then
> cache.get_cache('namespace').
>
> I tried setting the type to memcached, but don't see anything being
> populated in memcache.
>
> I must be doing something wrong?
Keep in mind you'll need to include as an option, the memcached url.
I'd suggest reading:
http://beaker.groovie.org/configuration.html#options-for-sessions-and-caching
Which shows how to configure Beaker for memcached. Also, if you are
frequently using the same set of options:
http://beaker.groovie.org/configuration.html#cache-region-options
And rather than using cache.get_cache, I'd suggest:
http://beaker.groovie.org/caching.html#cache-regions
Cheers,
Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---