Compatibility
- 0.2.0 and main5.35.25.15.04.2
- 0.2.0 and mainiOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
Hummingbird integration with Redis driver RediStack
Redis is an open source, in-memory data structure store, used as a database, cache, and message broker.
This is the Hummingbird interface to RediStack library a Swift driver for Redis.
let app = HBApplication()
try app.addRedis(configuration: .init(hostname: "localhost", port: 6379))
app.router.get("redis") { request in
request.redis.send(command: "INFO").map {
$0.description
}
}
app.start()