Closed madsodgaard closed 3 years ago
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.
app.caches.use(.redis)
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)
These changes are now available in 4.3.0
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: