Thanks Roberto. But I'm looking for something more generic to web2py, which works on both my production environment (ubuntu with uwsgi) and my local environment (windows with rocket), and hopefully other production configurations (with no uwsgi processes) if necessary.
Is there such a thing in web2py?, will cache.ram or memcache or redis be the solution?, or another approach is recommended?. Thanks! On Thursday, March 15, 2012 1:46:33 PM UTC-6, Roberto De Ioris wrote: > > > > Hi, > > > > My production environment is: latest web2py trunk, ubuntu 10.04, > > postgresql > > 8.4, nginx, uwsgi. > > > > I need to have data shared (not cached for certain time) across the uwsgi > > processes. > > > > Currently I'm accessing such data via db select, but I'm wondering if > > there's a faster ram method (which auto-clears when restarting uwsgi > > server), with no need to access the database. > > > > Is cache.ram or memcache or redis what I need?, preferably something > > simple > > to setup. > > > > Note that I do not need to cache anything for certain time, but instead > > share data (set/get common data) across my uwsgi processes. > > > > > > dict-based: > > http://projects.unbit.it/uwsgi/wiki/CachingFramework > > queue-based: > > http://projects.unbit.it/uwsgi/wiki/QueueFramework > > raw-memory: > > http://projects.unbit.it/uwsgi/wiki/SharedArea > > > -- > Roberto De Ioris > http://unbit.it > >

