mirror of
https://github.com/django/django.git
synced 2024-11-30 15:10:46 +01:00
f5c340684b
Thanks Andrew-Chen-Wang for the initial implementation which was posted to the Django forum thread about asyncifying contrib modules.
11 lines
290 B
Python
11 lines
290 B
Python
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")
|