No one has published a 'RAMDB' (a DAL driver for RAM). It could easily be implemented as a global dict, and it could be useful for say caching, but I would not put sessions into ram for production. If you have more than 1 application server/process, you will not be able to share sessions between them. RAMDB would however be very useful for development. :)
Robin On Mar 4, 2:28 pm, Markus Gritsch <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

