About Cache, you may try to import gluon cache.py module and see if it can solve you requirement.
Something like that : from cache import CacheInRam, CacheOnDisk, Cache You may need to include it in python path... Richard On Wed, Sep 30, 2015 at 8:22 AM, Kiran Subbaraman < subbaraman.ki...@gmail.com> wrote: > Hello group, > I have a standard web2py application, but within its modules directory, I > have a bunch of code which run within the web2py context (and its > scheduler), and also as scripts independent of web2py. It is just that this > code resident within web2py's modules. > I wanted to use the web2py caching capability within some of these > scripts, and soon realized that they are dependent on the web2py context. A > couple of questions: > > - So, I cannot use the cache module independent of web2py's running > context. Is this a fair assumption? If not, any suggestions on how I can > use this cache module will help. > - Less important question: Ended up searching for python based caches, > and I came across Beaker <http://beaker.readthedocs.org/en/latest/>, > and Dogpile <http://dogpilecache.readthedocs.org/en/latest/index.html>, > among others. Before I decide on what to do about my cache requirement, I > thought I'll reach out to the community to see if there are any viewpoints > on either of these projects? > > Thank you, > > Kiran > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.