1
0
mirror of https://github.com/django/django.git synced 2025-01-18 22:33:44 +00:00
django/tests/cache/failing_cache.py
Sulabh Katila eceb5e2eea
Fixed #34806 -- Made cached_db session backend resilient to cache write errors.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-02-21 21:51:58 -03:00

8 lines
187 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")