Commit 4787000c authored by John Furr's avatar John Furr

Merged with master

parents f40dba29 e8b93309
......@@ -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>
from redis_cache.backends.single import RedisCache
from redis_cache.backends.multiple import ShardedRedisCache
from redis_cache.backends.dummy import RedisDummyCache
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
......@@ -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'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment