mirror of
https://github.com/Hopiu/django.git
synced 2026-05-25 23:33:52 +00:00
API. This works for all cache backends. Patch from Matt McClanahan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
25 lines
498 B
Python
25 lines
498 B
Python
"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):
|
|
pass
|
|
|
|
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
|