Ticket #3290: 3290_DummyCache_patch.diff

File 3290_DummyCache_patch.diff, 661 bytes (added by Ned Batchelder <ned@…>, 9 years ago)
  • django/core/cache/backends/dummy.py

     
    66    def __init__(self, *args, **kwargs):
    77        pass
    88
    9     def get(self, *args, **kwargs):
    10         pass
     9    def get(self, key, default=None):
     10        return default
    1111
    1212    def set(self, *args, **kwargs):
    1313        pass
     
    1616        pass
    1717
    1818    def get_many(self, *args, **kwargs):
    19         pass
     19        return {}
    2020
    2121    def has_key(self, *args, **kwargs):
    2222        return False
Back to Top