dkr-sahar
ba548fa9c3
Use redis parse_url method instead of a custom one ( #234 )
...
* Use redis parse_url method instead of a custom one
The custom method defined here has no real advantage
- the redis lib implements it better and have support for many use cases
- maintaining this implementation is error-prone and unnecessary work for overworked open-source contributors :)
Especially, when you want to pass query parameters here, they are not supported (for eg a custom certificate authority)
* remove test about url parsing
* remove unused imports
2023-10-12 13:20:58 -04:00
Ken Cochrane
b0f90e690a
fixing issue #219 don't add redis username by default ( #227 )
...
* fixing issue #219 don't add Redis username by default
2023-02-23 09:59:52 -05:00
cbh
bb122f24b9
add username option to redis config
2022-06-06 13:15:55 +03:00
Hasan Ramezani
5e6e52fcbb
Drop Python2.7 support.
2020-11-23 17:30:46 +01:00
Jorge
7124e4b156
make password quote optional in the funciton signature
2020-10-27 12:35:39 -03:00
calmkart
71312eb841
FIX: support for special character in redis password(such like '@') ( #155 )
...
* FIX: if special character in redis password, we can set DEFENDER_REDIS_PASSWORD_QUOTE to True, and use quote password
* MOD:add test cases with password_quota = True
2020-03-13 08:13:54 -04:00
Aleksi Häkli
a1d526f318
PEP8 formatting ( #147 )
...
Run black with Python 2.7 as target version
to unify the code styling and make it more
linter and style guide compliant
2019-11-15 20:22:14 +02:00
Jaimie Imrie
066dd238c8
Added ssl option when instantiating StrictRedis ( #120 )
2018-04-10 18:57:45 -04:00
Ken Cochrane
fcfcd53076
Move mockredis to test requirements. replaces #115 ( #119 )
...
Signed-off-by: Ken Cochrane <KenCochrane@gmail.com>
2018-02-20 09:34:14 -05:00
cburger
b2490e4e4c
Correctly get raw client when using django_redis cache. ( #104 )
2017-10-27 09:38:11 -04:00
Ken Cochrane
4d9adc35c2
Cleanup the code to remove lint warnings ( #87 )
...
* Cleanup the code to remove lint warnings
Signed-off-by: Ken Cochrane <kencochrane@gmail.com>
* Fixed typo
Signed-off-by: Ken Cochrane <kencochrane@gmail.com>
2017-06-28 17:09:44 -04:00
Francisco Rivera
d2b712eade
Taking redis client from django.core.cache ( #82 )
...
* new setting that point to an already configured redis client
* taking redis client from django cache setting
* adding informative exception
* dropping django 1.6 support
* dropping django 1.7 support
* adding tests
* removing old coverage stuff + pep8 fixes
* ups, wrong package
* supporting multiple backends
* adding documentation
* dropping python 2.6 support
2017-06-24 19:17:15 -04:00
Ken Cochrane
fb095e4ca9
cleaned up some landscape.io warnings
2015-03-20 11:09:45 -04:00
Marcus Martins
d72e32cfc1
Allow redis connections to be mocked outside tests
...
Use a mocked instance of redis outside tests so we can use it
on django projects.
2015-01-08 12:56:33 -08:00
Ken Cochrane
1c56b279cd
missing file in last commit
2015-01-03 11:11:08 -05:00
Joffrey F
70fa41ff0d
Ensure we don't break when cooloff time is 0 ('permanent' lock)
2015-01-02 12:12:57 -08:00
Ken Cochrane
aa934d7af4
improvements to coverage, and added pypy3 testing
2015-01-01 13:50:19 -05:00
Ken Cochrane
84e4105ae5
removed the extra print statments
2015-01-01 12:58:09 -05:00
Ken Cochrane
a8e721dd3d
more refactoring and unit tests
2015-01-01 12:51:46 -05:00