Files
web2py/gluon/contrib
niphlod 12acdb51d7 new redis toolset to use with web2py
This is a refactor of everything web2py uses with redis.
Specifically:
- a refactored redis_cache.py that fixes #958, allowing a "fail
gracefully" behaviour in case redis is not available
- a refactored redis_session.py that blocks less with with_lock=True
(although still not optimal)
- a new (and NEEDED) redis_utils.py that serves as the base for
everything else, allowing an RConn object that you can freely use as a
redis.StrictRedis connection, and that you can override in case you're
using a different library (or that web2py will use in case redis-py
won't be the de-facto standard around)
- a newly - and much anticipated - redis_scheduler.py. It's a slip-in
replacement for the standard scheduler that uses redis for workers
coordination. Feel free to dig in the code and improve it.

For redis_cache and redis_session changes are BREAKING. It means that
users will need to change the import locations and tune a bit the code.
Now every module depends on an gluon.contrib.redis_utils.RConn object
(or similar) that in turns is very similar to a redis.StrictRedis one.
The redis instance is EXTERNAL to the modules themselves (no more "host,
port, db, password" parameters in RedisCache or RedisSession)
See the relevant docstrings for usage examples
2016-01-02 23:15:00 +01:00
..
2013-05-14 00:15:49 +01:00
2014-09-15 07:34:14 -05:00
2014-09-15 07:34:14 -05:00
2012-10-19 12:33:53 -05:00
2015-02-01 17:56:30 +01:00
2013-07-04 13:49:42 -03:00
2011-11-22 23:30:42 -06:00
2012-09-30 13:40:41 -05:00
2014-09-15 18:30:37 -05:00
2012-10-23 10:13:17 -05:00
2014-12-21 20:30:18 +01:00
2014-04-02 09:19:52 -05:00
2014-04-02 09:19:52 -05:00
2012-10-19 12:33:53 -05:00
2015-03-19 12:22:21 -05:00
2015-01-17 00:07:10 -06:00
2015-08-13 02:12:49 -03:00
2015-02-23 21:49:00 +01:00
2015-01-17 00:07:10 -06:00
2012-10-19 12:33:53 -05:00
2015-01-17 00:07:10 -06:00
2013-09-13 15:39:39 -05:00
2012-10-19 12:33:53 -05:00
2015-05-28 14:29:43 +03:00
2015-08-19 11:59:40 +01:00
2012-10-19 12:33:53 -05:00
2012-10-19 12:33:53 -05:00
2012-10-19 12:33:53 -05:00
2015-01-17 00:07:10 -06:00
2015-09-16 17:12:45 +02:00