diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-01-12 15:16:55 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-01-12 15:16:55 +0000 |
| commit | c1b11091e7f7859b66cc1d72fbce712c22c2ad0a (patch) | |
| tree | ed48c6c29a6cfae5de90f672cd36e2fab8f3736b | |
| parent | b118b28bac483133d08eeee5ebc791eb527249c6 (diff) | |
Fixed #3290: DummyCache now conforms to the BaseCache interface correctly. Thanks, Ned Batchelder.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/cache/backends/dummy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/core/cache/backends/dummy.py b/django/core/cache/backends/dummy.py index c68f33616c..4c64161538 100644 --- a/django/core/cache/backends/dummy.py +++ b/django/core/cache/backends/dummy.py @@ -6,8 +6,8 @@ class CacheClass(BaseCache): def __init__(self, *args, **kwargs): pass - def get(self, *args, **kwargs): - pass + def get(self, key, default=None): + return default def set(self, *args, **kwargs): pass @@ -16,7 +16,7 @@ class CacheClass(BaseCache): pass def get_many(self, *args, **kwargs): - pass + return {} def has_key(self, *args, **kwargs): return False |
