summaryrefslogtreecommitdiff
path: root/tests/cache/failing_cache.py
blob: 1c9b5996d61f90533370a0f585ab5bf543aaea34 (plain)
1
2
3
4
5
6
7
8
9
10
from django.core.cache.backends.locmem import LocMemCache


class CacheClass(LocMemCache):

    def set(self, *args, **kwargs):
        raise Exception("Faked exception saving to cache")

    async def aset(self, *args, **kwargs):
        raise Exception("Faked exception saving to cache")