I guys,

The "order = cache.ram(session.name, lambda:Order(), 3600)", did work and
do exactly what I want thanks for the tips,
the part of not holding the data is no problem, if I want it to be
persistent data I will at some point insert in to the DB.

Regards
Rui Gomes

On Thu, Mar 24, 2011 at 3:51 PM, Massimo Di Pierro <
[email protected]> wrote:

> I have not tested is but I suspect cache.disk add some 10-20ms to
> every request. Only use it if to cache long queries, not cache pages.
> cache.ram is the way to go for many other cases even if you loose it
> upon restart.
>
> On Mar 24, 12:57 pm, Michele Comitini <[email protected]>
> wrote:
> > I would use cache.disk otherwise on restart everything would be lost
> >
> > 2011/3/24 Jose <[email protected]>:
> >
> >
> >
> >
> >
> >
> >
> > >> You should use cache.
> >
> > >> order = cache.ram('order', lambda:Order(), 3600)
> >
> > > order = cache.ram(session.name, lambda:Order(), 3600)
> >
> > > Jose
>

Reply via email to