| 1 |
from django.core.cache.backends.locmem import LocMemCache |
| 2 |
|
| 3 |
|
| 4 |
class CacheClass(LocMemCache): |
| 5 |
|
| 6 |
def set(self, *args, **kwargs): |
| 7 |
raise Exception("Faked exception saving to cache") |
| 8 |
|
| 9 |
async def aset(self, *args, **kwargs): |
| 10 |
raise Exception("Faked exception saving to cache") |