a=cache.ram('%s_%s' % args,lambda args=args:
load_chapter(*args),time_expire=50)

On Mar 26, 10:44 am, David Zejda <d...@atlas.cz> wrote:
> Hello :)
>
> I'd like to do something like this:
>
> def load_chapter(book, chapter):
>    ....
>
> args = ('Alice', 3)
> a = cache.ram('%s_%s' % args, load_chapter, arguments=args,
> time_expire=50)
>
> where the cache would execute load_chapter('Alice', 3) if necessary.
>
> Any advices, please?
>
> Regards,
> David

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to