It is there already.

values=db(...).select(cache=(cache.disk,3600))

3600 is the time.

On Mar 9, 5:23 am, Praneeth <life...@gmail.com> wrote:
> Hello all,
>
> I was wondering if DAL level caching could be added. I am aware of
> cache.ram and cache.disk, but these require the usage of a decorator
> over the functions. I feel that a cache option to cache at the DAL level
> that could be enabled by flipping an option in db.py of an application
> would be of great help. The cache can be a key value pair of sorts,
> where the cache is flushed on each write/update and cached on the first
> read - There are probably smarter ways of doing this.
>
> Thoughts?
>
> --
> Praneeth

-- 
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