Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
Django-Redis-Cache
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared
Django-Redis-Cache
Commits
babe4ae0
Commit
babe4ae0
authored
Jul 22, 2015
by
Sean Bleier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with redis urls and unix_socket_path key error.
parent
12fabc20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
connection.py
redis_cache/connection.py
+1
-1
utils.py
redis_cache/utils.py
+1
-0
No files found.
redis_cache/connection.py
View file @
babe4ae0
...
...
@@ -58,7 +58,7 @@ class CacheConnectionPool(object):
kwargs
.
update
(
connection_pool_class_kwargs
)
if
unix_socket_path
i
s
None
:
if
unix_socket_path
i
n
(
None
,
''
)
:
kwargs
.
update
({
'host'
:
host
,
'port'
:
port
,
...
...
redis_cache/utils.py
View file @
babe4ae0
...
...
@@ -93,6 +93,7 @@ def parse_connection_kwargs(server, db=None, **kwargs):
NOTE: taken from `redis.ConnectionPool.from_url` in redis-py
"""
kwargs
[
'unix_socket_path'
]
=
''
if
'://'
in
server
:
url
=
server
url_string
=
url
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment