Skip to content

Commit

Permalink
support to configure different redis-server db by adding REDIS_DB (#166)
Browse files Browse the repository at this point in the history
* support to configure different redis-server db by adding REDIS_DB

* update docstring
  • Loading branch information
featureoverload committed May 19, 2020
1 parent 40440c8 commit 9671d50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scrapy_redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'REDIS_URL': 'url',
'REDIS_HOST': 'host',
'REDIS_PORT': 'port',
'REDIS_DB': 'db',
'REDIS_ENCODING': 'encoding',
}

Expand Down Expand Up @@ -39,6 +40,8 @@ def get_redis_from_settings(settings):
Server host.
REDIS_PORT : str, optional
Server port.
REDIS_DB : int, optional
Server database
REDIS_ENCODING : str, optional
Data encoding.
REDIS_PARAMS : dict, optional
Expand Down

0 comments on commit 9671d50

Please sign in to comment.