Re: [web2py] cache.redis in module

2017-03-29 Thread Richard Vézina
Did you try passing cache.redis to current like db : # Model from gluon.contrib.redis_utils import RConn from gluon.contrib.redis_cache import RedisCache rconn = RConn(host='localhost', port=6379, db=None, password='', socket_timeout=None, socket_connect_timeout=None) cache.redis =

Re: [web2py] cache.redis in module

2017-03-29 Thread Richard Vézina
Had the same issue, not had time to work on it. Will post here any progress... Maybe Simone can help us, I recall he wrote the redis contrib. Richard On Mon, Mar 27, 2017 at 4:09 PM, Pierre wrote: > Hi everyone, > > I have a *cache.redis* defined in a db.py file like so: > > from gluon.contrib

[web2py] cache.redis in module

2017-03-27 Thread Pierre
Hi everyone, I have a *cache.redis* defined in a db.py file like so: from gluon.contrib.redis_utils import RConn from gluon.contrib.redis_cache import RedisCache rconn = RConn('localhost', 6379) cache.redis = RedisCache(redis_conn=rconn, debug=True) now i'd like to perform caching in a module