Swiftpack.co - vapor/redis as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
vapor/redis
Vapor provider for RediStack
.package(url: "https://github.com/vapor/redis.git", from: "4.4.0")

Redis

Documentation Team Chat MIT License Continuous Integration Swift 5.0

This project is based off the Redis driver RediStack. For the majority of API documentation, refer to docs.redistack.info.

GitHub

link
Stars: 445
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

Expose method on Redis objects to lease connections
2 weeks ago
This patch was authored and released by @Mordil.

Adds a withBorrowedClient method on both Application.Redis and Request.Redis for being able to lease a RedisClient for a specified amount of time to execute commands serially with.

This allows for a custom execution of MULTI commands in the following way

request.redis.withBorrowedClient {
    return client
        .send(command: "MULTI")
        .flatMap { _ in client.send(command: "PING") }
        .flatMap { _ in client.send(command: "EXEC") }
}
// this is now an 'EventLoopFuture<RESPValue>' with the value being an array of RESPValue result of every queued command

This fixes #190

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