Releases: vapor/redis
4.14.0 - add concurrency function for expire, exists, ttl, pttl
What's Changed
add concurrency function for expire, exists, ttl, pttl by @iwecon in #222
add concurrency function for expire, exists, ttl, pttl
try await req.redis.expire(key1, after: .seconds(10)) == true try await req.redis.exists(key1, key2, key3) == 3 try await req.redis.exists([key1, key2, key3]) == 3 try await req.redis.ttl(key1) == RedisKey.Lifetime try await req.redis.pttl(key1) == RedisKey.Lifetime
This patch was released by @0xTim
Full Changelog: 4.13.1...4.14.0
4.13.1 - add any to protocol
What's Changed
add any to protocol by @zunda-pixel in #223
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.13.0...4.13.1
4.13.0 - Allow `JSONEncoder` and `JSONDecoder` to be overwritten
What's Changed
Allow JSONEncoder
and JSONDecoder
to be overwritten by @leonidas-o in #219
Add jsonEncoder and jsonDecoder arguments to RedisClient, Application.Caches and Application.Caches.Provider extension funcs.
This patch was released by @0xTim
Full Changelog: 4.12.0...4.13.0
4.12.0 - Drop old Swift versions
What's Changed
Drop old Swift versions by @0xTim in #220
- Drop 5.8 and 5.9
- Update CI
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 4.11.1...4.12.0
4.11.1 - make Redis Sendable
What's Changed
make Redis Sendable by @AntVil in #217
- counter warning from
Application.Redis
:Stored property 'redisInstances' of 'Sendable'-conforming class 'MyRedis' has non-sendable type '[Application.Redis]'; this is an error in the Swift 6 language mode
example for more context:
extension Application { public final class MyRedis { struct MyRedisKey: StorageKey { typealias Value = Application.MyRedis } private let redisInstances: [Application.Redis] } }
This patch was released by @0xTim
Full Changelog: 4.11.0...4.11.1
4.11.0 - Support Async Lifecycles
What's Changed
Support Async Lifecycles by @0xTim in #214
Support Vapor’s async
LifecycleHandler
functions. This allows users to avoid calling.wait()
when shutting down their Vapor apps, which can cause issues, for example, with trying to install a new concurrency executor.This also updates the supported Swift version to 5.8
This patch was released by @0xTim
Full Changelog: 4.10.0...4.11.0
Correct RediStack URL and match Vapor's minimum Swift version
This patch was authored and released by @gwynne.
Switches to the now-official GitHub URL for RediStack and raises the Swift minimum version to 5.6 to match Vapor.
(Swift version update requires minor version bump.)
Correct RediStack URL and match Vapor's minimum Swift version
This patch was authored and released by @gwynne.
Switches to the now-official GitHub URL for RediStack and raises the Swift minimum version to 5.6 to match Vapor.
(Swift version update requires minor version bump.)
4.9.0
What's Changed
- Add onUnexpectedConnectionClose by @marius-se in #210
New Contributors
- @marius-se made their first contribution in #210
Full Changelog: 4.8.0...4.9.0
General overdue cleanups
This patch was authored and released by @gwynne.
- Bump Swift minimum to match Vapor
- Add platform versions
- Update README
- Fix imports
- Remove old Concurrency conditionals