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
4787000c
Commit
4787000c
authored
Aug 11, 2015
by
John Furr
Browse files
Options
Browse Files
Download
Plain Diff
Merged with master
parents
f40dba29
e8b93309
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
AUTHORS.rst
AUTHORS.rst
+1
-0
__init__.py
redis_cache/__init__.py
+1
-0
dummy.py
redis_cache/backends/dummy.py
+24
-0
setup.py
setup.py
+1
-1
No files found.
AUTHORS.rst
View file @
4787000c
...
...
@@ -18,3 +18,4 @@ Florent Messa / thoas <https://github.com/thoas>
Markus Kaiserswerth / mkai <https://github.com/mkai>
Michael Lindemuth / mlindemu <https://github.com/mlindemu>
John Furr / gnulnx <https://github.com/gnulnx>
Christian Pedersen / chripede <https://github.com/chripede>
redis_cache/__init__.py
View file @
4787000c
from
redis_cache.backends.single
import
RedisCache
from
redis_cache.backends.multiple
import
ShardedRedisCache
from
redis_cache.backends.dummy
import
RedisDummyCache
redis_cache/backends/dummy.py
0 → 100644
View file @
4787000c
from
django.core.cache.backends.dummy
import
DummyCache
class
RedisDummyCache
(
DummyCache
):
def
ttl
(
self
,
key
):
return
0
def
delete_pattern
(
self
,
pattern
,
version
=
None
):
return
None
def
get_or_set
(
self
,
key
,
func
,
timeout
=
None
):
if
not
callable
(
func
):
raise
Exception
(
"Must pass in a callable"
)
return
func
()
def
reinsert_keys
(
self
):
return
None
def
persist
(
self
,
key
):
return
True
def
expire
(
self
,
key
,
timeout
):
return
True
setup.py
View file @
4787000c
...
...
@@ -5,7 +5,7 @@ setup(
url
=
"http://github.com/sebleier/django-redis-cache/"
,
author
=
"Sean Bleier"
,
author_email
=
"sebleier@gmail.com"
,
version
=
"1.
5.5
"
,
version
=
"1.
6.0
"
,
packages
=
[
"redis_cache"
,
"redis_cache.backends"
],
description
=
"Redis Cache Backend for Django"
,
install_requires
=
[
'redis>=2.10.3'
],
...
...
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