Swiftpack.co -  Package - hummingbird-project/hummingbird-redis
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
hummingbird-project/hummingbird-redis
Hummingbird integration with Redis driver RediStack
.package(url: "https://github.com/hummingbird-project/hummingbird-redis.git", from: "0.2.0")

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

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()

GitHub

link
Stars: 1
Last commit: 2 days ago

Release Notes

v0.2.0
6 weeks ago
  • Add Codable support
  • Make HBApplication.Redis.application unowned
  • Fix hummingbird.git package link

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco