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
eb2d1d30
Commit
eb2d1d30
authored
Oct 27, 2010
by
Noah Kantrowitz
Committed by
Stéphane Angel
Jan 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If no port is given but a server is, use that.
Only fall back to localhost if the URI is "redis_cache.cache://"
parent
55ced502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cache.py
redis_cache/cache.py
+1
-1
No files found.
redis_cache/cache.py
View file @
eb2d1d30
...
...
@@ -33,7 +33,7 @@ class CacheClass(BaseCache):
except
(
ValueError
,
TypeError
):
port
=
6379
else
:
host
=
'localhost'
host
=
server
or
'localhost'
port
=
6379
self
.
_cache
=
redis
.
Redis
(
host
=
host
,
port
=
port
,
db
=
db
,
password
=
password
)
...
...
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