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
f4cb207f
Unverified
Commit
f4cb207f
authored
Apr 16, 2020
by
Sean Bleier
Committed by
GitHub
Apr 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #189 from sebleier/add-ssl-support
Add ssl support
parents
f97ce688
44754d90
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
7 deletions
+19
-7
AUTHORS.rst
AUTHORS.rst
+1
-0
LICENSE
LICENSE
+1
-1
README.rst
README.rst
+5
-0
base.py
redis_cache/backends/base.py
+10
-3
connection.py
redis_cache/connection.py
+1
-1
utils.py
redis_cache/utils.py
+0
-1
setup.py
setup.py
+1
-1
No files found.
AUTHORS.rst
View file @
f4cb207f
...
...
@@ -24,3 +24,4 @@
| Tim Graham / timgraham <https://github.com/timgraham>
| Justin Arulnathan / dinie <justin@gizmag.com>
| Mariusz Felisiak / felixxm <felisiak.mariusz@gmail.com>
| metamatik <mr@babik.fr>
LICENSE
View file @
f4cb207f
Copyright (c) 20
15
Sean Bleier
Copyright (c) 20
20
Sean Bleier
All rights reserved.
Redistribution and use in source and binary forms, with or without
...
...
README.rst
View file @
f4cb207f
...
...
@@ -21,6 +21,11 @@ Docs can be found at http://django-redis-cache.readthedocs.org/en/latest/.
Changelog
=========
2.1.1
-----
* Fixes URL scheme for `rediss://`.
2.1.0
-----
...
...
redis_cache/backends/base.py
View file @
f4cb207f
...
...
@@ -183,7 +183,14 @@ class BaseRedisCache(BaseCache):
socket_timeout
=
self
.
socket_timeout
,
socket_connect_timeout
=
self
.
socket_connect_timeout
,
)
client
=
self
.
Redis
(
**
kwargs
)
# remove socket-related connection arguments
if
kwargs
.
get
(
'ssl'
,
False
):
del
kwargs
[
'socket_timeout'
]
del
kwargs
[
'socket_connect_timeout'
]
del
kwargs
[
'unix_socket_path'
]
client
=
redis
.
Redis
(
**
kwargs
)
kwargs
.
update
(
parser_class
=
self
.
parser_class
,
connection_pool_class
=
self
.
connection_pool_class
,
...
...
@@ -423,8 +430,8 @@ class BaseRedisCache(BaseCache):
There are three timeouts you can specify:
``timeout``: Time in seconds that value at ``key`` is considered fresh.
``lock_timeout``: Time in seconds that the lock will stay active and prevent other threads
or
processes from acquiring the lock.
``lock_timeout``: Time in seconds that the lock will stay active and prevent other threads
or
processes from acquiring the lock.
``stale_cache_timeout``: Time in seconds that the stale cache will remain after the key has
expired. If ``None`` is specified, the stale value will remain indefinitely.
...
...
redis_cache/connection.py
View file @
f4cb207f
...
...
@@ -24,8 +24,8 @@ class CacheConnectionPool(object):
client
,
host
=
'127.0.0.1'
,
port
=
6379
,
db
=
1
,
ssl
=
False
,
db
=
1
,
password
=
None
,
parser_class
=
None
,
unix_socket_path
=
None
,
...
...
redis_cache/utils.py
View file @
f4cb207f
...
...
@@ -6,7 +6,6 @@ from django.utils.encoding import force_text
from
six
import
python_2_unicode_compatible
,
string_types
from
six.moves.urllib.parse
import
parse_qs
,
urlparse
from
redis._compat
import
unicode
from
redis.connection
import
SSLConnection
...
...
setup.py
View file @
f4cb207f
...
...
@@ -5,7 +5,7 @@ setup(
url
=
"http://github.com/sebleier/django-redis-cache/"
,
author
=
"Sean Bleier"
,
author_email
=
"sebleier@gmail.com"
,
version
=
"2.1.
0
"
,
version
=
"2.1.
1
"
,
license
=
"BSD"
,
packages
=
[
"redis_cache"
,
"redis_cache.backends"
],
description
=
"Redis Cache Backend for Django"
,
...
...
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