Skip to content

Releases: vapor/redis

4.14.0 - add concurrency function for expire, exists, ttl, pttl

12 Sep 18:03
bc960cc
Compare
Choose a tag to compare

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

08 Sep 19:30
d822288
Compare
Choose a tag to compare

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

01 Jul 17:58
f4ac198
Compare
Choose a tag to compare

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

01 Jul 16:26
dcb717f
Compare
Choose a tag to compare

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

20 Feb 19:46
b452702
Compare
Choose a tag to compare

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

24 May 10:49
383ed57
Compare
Choose a tag to compare

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

20 Jun 16:32
2a8d3e4
Compare
Choose a tag to compare
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

20 Jun 16:36
2a8d3e4
Compare
Choose a tag to compare
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

14 Jun 09:39
b4fcda8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.8.0...4.9.0

General overdue cleanups

22 Mar 08:44
d24cad7
Compare
Choose a tag to compare
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