app/django/core/cache/backends/dummy.py
author Lennard de Rijk <ljvderijk@gmail.com>
Sat, 21 Feb 2009 17:05:52 +0000
changeset 1437 eec60d5bbe95
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Added several menu items to the program menu. For example, non-students now see a Apply as a mentor link that takes them to the list of all active organizations. This only happens when the organizations announced deadline has passed. Patch by: Lennard de Rijk Reviewed 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):
        return True

    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