app/django/core/cache/backends/dummy.py
author Todd Larsen <tlarsen@google.com>
Fri, 03 Oct 2008 21:59:32 +0000 (2008-10-03)
changeset 267 0c008a43443b
parent 54 03e267d67478
child 323 ff1a9aa48cfd
permissions -rw-r--r--
Replace soc/views/helpers/request_helpers with soc/views/helpers/request.py and replace uses of request_helpers. with helpers.request. instead. Patch by: Todd Larsen Review by: to-be-reviewed
"Dummy cache backend"

from django.core.cache.backends.base import BaseCache

class CacheClass(BaseCache):
    def __init__(self, *args, **kwargs):
        pass

    def add(self, *args, **kwargs):
        pass

    def get(self, key, default=None):
        return default

    def set(self, *args, **kwargs):
        pass

    def delete(self, *args, **kwargs):
        pass

    def get_many(self, *args, **kwargs):
        return {}

    def has_key(self, *args, **kwargs):
        return False