Commit Graph

20 Commits

Author SHA1 Message Date
Radu Ioan Fericean
086bfb5851 fix redis sessions and redis for python3 2018-04-14 14:33:37 +03:00
niphlod
a96f137e03 fixes #1355 2016-06-28 21:43:31 +02:00
mdipierro
6ed204301d ok dropped backward compatibility in redis_*.py 2016-03-24 12:08:43 -05:00
mdipierro
4c5664f701 backward compatible syntax for redis 2016-03-23 19:14:37 -05:00
Richard Vézina
005e565a11 PEP8 enhancements, improve docstring and some vars rename 2016-01-14 12:28:05 -05:00
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
niphlod
cd1d6c5af1 redis multi-app. Thanks Lisandro for spotting it
redis_cache didn't play well with multiple apps for a silly mistake.
Glad that Lisadro pointed out
2015-05-21 22:26:04 +02:00
niphlod
6403878f95 refactored pickle everywhere but Session, removed unused imports 2014-09-10 19:12:10 +02:00
mdipierro
6e54b5458b fixed 1929:cannot acess appadmin cache if you use redis as cache, thanks leonardo 2014-05-26 23:49:11 -05:00
alex
31fcf51506 Added password option for redis_cache and redis_session 2014-02-24 19:01:27 -05:00
niphlod
dc2fd49ecb new and improved redis_cache. Got distributed locking and faster clear() function.
also, the .increment() was a little bit bugged.
2013-05-16 00:44:24 +02:00
mdipierro
6aa5edc7ff many pep8 improvements 2012-10-19 12:33:53 -05:00
mdipierro
71ec15190b some pep8 changes (fixed spacing at end) 2012-10-19 10:37:07 -05:00
mdipierro
3a66f5e330 fixed some pep8 stuff 2012-10-19 09:40:17 -05:00
mdipierro
dcce7fc39a fixed @//// in wiki and pep8 spacing 2012-08-25 11:29:11 -05:00
mdipierro
e76bcf0ea9 removed unwanted whitespaces 2012-08-16 11:56:07 -05:00
Massimo Di Pierro
ba93692ed4 fixed issue 728, bug in languages, thanks pgergo 2012-03-26 11:17:20 -05:00
Massimo Di Pierro
77e8889398 new redic cache, thanks nihlod 2012-01-29 15:17:14 -06:00
Massimo Di Pierro
d281acb421 fixws and 'new' button in grid query 2011-12-05 11:39:42 -06:00
Massimo Di Pierro
d421c1321b initial commit 2011-11-22 23:30:42 -06:00