blob: 089d732591e0a6b86aab6525d00ce57a02f0d5d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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")
def delete(self, *args, **kwargs):
raise Exception("Faked exception deleting from cache")
async def adelete(self, *args, **kwargs):
raise Exception("Faked exception deleting from cache")
|