File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,14 @@ RedisCache
69
69
70
70
The `RedisCache ` uses a Redis database to store values. The values are
71
71
stored as strings in redis, which means the get, set and delete
72
- actions are used.
72
+ actions are used. It requires the `redis `_ library to be installed.
73
+
74
+ .. note ::
75
+
76
+ Note that you can install this dependency automatically with pip
77
+ by requesting the *redis * extra: ::
78
+
79
+ pip install cachecontrol[redis]
73
80
74
81
The `RedisCache ` also provides a clear method to delete all keys in a
75
82
database. Obviously, this should be used with caution as it is naive
@@ -94,3 +101,4 @@ a better method for utilizing redis as a cache.
94
101
.. _httplib2 : http://code.google.com/p/httplib2/
95
102
.. _lockfile : https://github.com/smontanaro/pylockfile
96
103
.. _requests 2.1 : http://docs.python-requests.org/en/latest/community/updates/#id2
104
+ .. _redis : https://github.com/andymccurdy/redis-py
Original file line number Diff line number Diff line change 22
22
],
23
23
extras_require = {
24
24
'filecache' : ['lockfile>=0.9' ],
25
+ 'redis' : ['redis>=2.10.5' ],
25
26
},
26
27
entry_points = {
27
28
'console_scripts' : [
You can’t perform that action at this time.
0 commit comments