On Wed, Mar 4, 2009 at 7: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
Can the session be stored in cache.ram without gluon.contrib.memcache? Kind regards, Markus --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

