summaryrefslogtreecommitdiffstats
path: root/webapp/django/core/cache/backends/dummy.py
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/django/core/cache/backends/dummy.py')
-rw-r--r--webapp/django/core/cache/backends/dummy.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/webapp/django/core/cache/backends/dummy.py b/webapp/django/core/cache/backends/dummy.py
new file mode 100644
index 0000000000..e479703f75
--- /dev/null
+++ b/webapp/django/core/cache/backends/dummy.py
@@ -0,0 +1,25 @@
+"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