Files
web2py/gluon
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
..
2015-12-24 08:50:24 -06:00
2015-12-17 21:19:08 -06:00
2015-03-12 09:35:28 -05:00
2015-12-17 21:19:08 -06:00
2015-12-17 21:19:08 -06:00
2014-01-27 22:56:58 +01:00
2014-01-27 22:56:58 +01:00
2015-12-17 21:19:08 -06:00
2014-01-29 23:01:52 +01:00
2015-03-19 00:04:24 +01:00
2014-01-29 23:01:52 +01:00
2015-03-06 22:06:37 -05:00
2015-04-01 21:35:52 +02:00
2015-03-06 22:08:50 -05:00
2015-03-06 22:12:56 -05:00
2015-03-06 22:14:10 -05:00
2015-03-06 22:15:42 -05:00
2015-03-06 22:19:09 -05:00
2015-03-06 22:20:22 -05:00
2015-03-06 22:22:00 -05:00
2015-03-06 22:24:02 -05:00
2015-09-21 22:09:17 +02:00
2014-12-15 22:24:04 +01:00
2015-12-27 07:12:56 -06:00
2015-05-14 12:24:58 -03:00
2014-08-14 16:27:46 -05:00
2015-12-17 21:19:08 -06:00
2015-12-23 23:11:34 -06:00
2015-03-31 14:05:34 -04:00
2015-12-27 07:12:56 -06:00
2015-12-28 14:48:29 +01:00