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.
RedisClient.disabled
1 parent 3dd2cf8 commit fa3d12cCopy full SHA for fa3d12c
Sources/App/Core/Dependencies/RedisClient.swift
@@ -48,6 +48,15 @@ extension DependencyValues {
48
}
49
50
51
+#if DEBUG
52
+extension RedisClient {
53
+ static var disabled: Self {
54
+ .init(set: { _, _ in }, get: { _ in nil })
55
+ }
56
+}
57
+#endif
58
+
59
60
private actor Redis {
61
var client: RediStack.RedisClient
62
static private var task: Task<Redis?, Never>?
0 commit comments