We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f7a6a commit cb1898dCopy full SHA for cb1898d
health_check/cache/backends.py
@@ -4,12 +4,14 @@
4
from health_check.backends import BaseHealthCheckBackend
5
from health_check.exceptions import ServiceReturnedUnexpectedResult, ServiceUnavailable
6
7
-class CacheBackend(BaseHealthCheckBackend):
8
+class CacheBackend(BaseHealthCheckBackend):
9
def __init__(self, backend="default"):
10
super().__init__()
11
self.backend = backend
12
- self.cache_key = getattr(settings, "HEALTHCHECK_CACHE_KEY", "djangohealtcheck_test")
+ self.cache_key = getattr(
13
+ settings, "HEALTHCHECK_CACHE_KEY", "djangohealthcheck_test"
14
+ )
15
16
def identifier(self):
17
return f"Cache backend: {self.backend}"
0 commit comments