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 8371d00 commit 6ade103Copy full SHA for 6ade103
Sources/App/configure.swift
@@ -81,14 +81,6 @@ public func configure(_ app: Application) async throws -> String {
81
// Setup Redis connection
82
do {
83
app.redis.configuration = try RedisConfiguration(hostname: "redis")
84
- Task { // write-read test across nodes
85
- try await Task.sleep(for: .seconds(5)) // give redis some spin-up time
86
- let key = "startup-time-\(app.http.server.configuration.hostname)"
87
- try await app.redis.set(.init(key), to: "\(Date.now)").get()
88
- if let value = try await app.redis.get(.init(key), as: String.self).get() {
89
- app.logger.info("Redis set/get result: \(value)")
90
- }
91
92
} catch {
93
app.logger.warning("Failed to configure Redis, caching disabled. Error: \(error)")
94
}
0 commit comments