Swift 5.8
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()
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Hummingbird Redis Interface
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.
Usage