Swiftpack.co -  Package - vapor/redis
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.3.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: 434
Last commit: Yesterday

Release Notes

Add support for Vapor `Cache` protocol expiration time
Yesterday
This patch was authored by @madsodgaard and released by @0xTim.

Adds support for setting an expiration time when using Redis as the Vapor cache via app.caches.use(.redis). See v4.44.0 for more info.

This PR also fixes #187 by adding a function to set an expiration time when setting a key to JSON:

app.redis.setex("user", toJSON: User(name: "mads"), expirationInSeconds: 10)

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