diff options
Diffstat (limited to 'google_appengine/lib/django/django/core/cache/backends/dummy.py')
-rwxr-xr-x | google_appengine/lib/django/django/core/cache/backends/dummy.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/google_appengine/lib/django/django/core/cache/backends/dummy.py b/google_appengine/lib/django/django/core/cache/backends/dummy.py new file mode 100755 index 0000000..4c64161 --- /dev/null +++ b/google_appengine/lib/django/django/core/cache/backends/dummy.py @@ -0,0 +1,22 @@ +"Dummy cache backend" + +from django.core.cache.backends.base import BaseCache + +class CacheClass(BaseCache): + def __init__(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 |