app/django/core/cache/backends/dummy.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Thu, 23 Oct 2008 11:20:35 +0000
changeset 413 ec1b590418df
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Rename Host list templates from group_<something> to host_<something> and move then to soc/host/list folder. Update affected files with new paths. Patch by: Pawel Solyga 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):
        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