app/django/core/cache/backends/dummy.py
author Lennard de Rijk <ljvderijk@gmail.com>
Tue, 03 Feb 2009 08:33:46 +0000
changeset 1196 11dbdf12d7c2
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Only do the update routine when the status changes for group_app's and role requests. This helps prevent spamming multiple notifications. 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