2006-02-24 14:07:01 +08:00
|
|
|
"Dummy cache backend"
|
|
|
|
|
|
|
|
from django.core.cache.backends.base import BaseCache
|
|
|
|
|
|
|
|
class CacheClass(BaseCache):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
pass
|
|
|
|
|
2007-10-20 23:16:34 +08:00
|
|
|
def add(self, *args, **kwargs):
|
2008-08-10 11:52:21 +08:00
|
|
|
return True
|
2007-10-20 23:16:34 +08:00
|
|
|
|
2007-01-12 23:16:55 +08:00
|
|
|
def get(self, key, default=None):
|
|
|
|
return default
|
2006-02-24 14:07:01 +08:00
|
|
|
|
|
|
|
def set(self, *args, **kwargs):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def delete(self, *args, **kwargs):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def get_many(self, *args, **kwargs):
|
2007-01-12 23:16:55 +08:00
|
|
|
return {}
|
2006-02-24 14:07:01 +08:00
|
|
|
|
|
|
|
def has_key(self, *args, **kwargs):
|
|
|
|
return False
|
2010-01-27 16:21:35 +08:00
|
|
|
|
|
|
|
def set_many(self, *args, **kwargs):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def delete_many(self, *args, **kwargs):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def clear(self):
|
|
|
|
pass
|