mirror of
https://github.com/Hopiu/django.git
synced 2026-05-16 03:23:09 +00:00
if a call to add() ended up storing something in the cache. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
25 lines
505 B
Python
25 lines
505 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):
|
|
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
|