no, currently support for sessions in redis is not there. Il giorno lunedì 8 ottobre 2012 16:48:52 UTC+2, rif ha scritto: > > Is the code bellow the correct way to create the sessions in redis? > > from gluon.contrib.memdb import MEMDB > from gluon.contrib.redis_cache import RedisCache > cache.redis = RedisCache('localhost:6379',db=None, debug=True) > session.connect(request, response, db = MEMDB(cache.redis)) > > If yes, there is an error: > > ERROR:web2py:Traceback (most recent call last): > File "/home/rif/Documents/webframeworks/web2py/gluon/main.py", line 614, > in wsgibase > BaseAdapter.close_all_instances('rollback') > File "/home/rif/Documents/webframeworks/web2py/gluon/dal.py", line 529, > in close_all_instances > THREAD_LOCAL.db_instances.clear() > AttributeError: 'thread._local' object has no attribute 'db_instances' > >
--