Martyn Inglis
88f04a46cf
Implemented the rate limiting from Redis
...
- Uses Redis cache to check for current count
- If not present then sets the value based on the database state
- Any Redis errors are swallowed. Cache failures should NOT fail the request.
2016-11-11 16:47:52 +00:00
Martyn Inglis
6c27f8023e
Added tests for setting and fetching from redis respecting the enabled flag.
2016-11-10 13:22:38 +00:00
Martyn Inglis
aabda3f83e
Refactored the initialisation of the redis client to follow the model used in the StatsdClient.
...
Basically wrapped the client so we can enable/disable, exception handle and so on.
2016-11-10 11:50:49 +00:00
Martyn Inglis
eb94fe6c0a
Adding Flask-Redis to the project.
...
[https://pypi.python.org/pypi/Flask-Redis/0.1.0 ](https://pypi.python.org/pypi/Flask-Redis/0.1.0 )
Initial addition as we think about redis as cache.
2016-11-10 11:27:57 +00:00
Martyn Inglis
aea2356ae1
Initial SPIKE into redis for cache
2016-11-07 11:55:59 +00:00