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 =
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
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
3 matches
Mail list logo