I have been using MEMDB to store sessions in memcache since August
2008:

http://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4d23b53/f67faac66a695ca2?hl=en&lnk=gst&q=memdb#f67faac66a695ca2

the code is under contrib:

from gluon.contrib.memdb import *
from google.appengine.api.memcache import Client
session.connect(request,response,db=MEMDB(Client()))

Robin

On Mar 4, 12:47 am, mdipierro <[email protected]> wrote:
> for now you should be able to do in like this:
>
> from gluon.contrib.memcache import MemcacheClient
> cache.memcache=MemcacheClient([.....]) ### [...] is a list of memcache
> IPs
> session=cache.memcache(response.session_id,lambda:{},1e8)
> def custom_commit(response,session):
>      cache.memcache(response.session_id,lambda:session,-1)
>      SQLDB.close_all_instances(SQLDB.commit)
> response._custom_commit=lambda response=response,session=session:
> custom_commit(response,session)
> session.forget()
>
> Tiy can try with cache.ram or cache.disk first
>
> On Mar 4, 12:31 am, luckyboy <[email protected]> wrote:
>
> > Cool, can't wait..
>
> > On Mar 3, 10:16 pm, mdipierro <[email protected]> wrote:
>
> > > No yet but very soon. Perhaps tonight?
>
> > > Massimo
>
> > > On Mar 3, 9:10 pm, luckyboy <[email protected]> wrote:
>
> > > > Was never able to find a clear answer.. And if not, are there plans in
> > > > the (soon) coming releases for this ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to