app/django/core/cache/backends/dummy.py
author Lennard de Rijk <ljvderijk@gmail.com>
Sat, 21 Feb 2009 11:08:15 +0000
changeset 1426 dc3a7f618b68
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Added student_proposal view. Note that the access checks still need to be done and other functionality like ranking/scoring and withdrawal of the application are not in yet. 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