Skip to content

Conversation

iwecon
Copy link
Contributor

@iwecon iwecon commented Aug 6, 2025

These changes are now available in 4.14.0

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

@iwecon iwecon requested review from 0xTim and gwynne as code owners August 6, 2025 17:45
Copy link
Member

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@0xTim 0xTim added the semver-minor Contains new APIs label Sep 12, 2025
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.09%. Comparing base (d822288) to head (d59664a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/Redis/RedisClient+Concurrency.swift 0.00% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #222      +/-   ##
==========================================
- Coverage   53.33%   52.09%   -1.25%     
==========================================
  Files          11       12       +1     
  Lines         420      430      +10     
==========================================
  Hits          224      224              
- Misses        196      206      +10     
Files with missing lines Coverage Δ
Sources/Redis/Redis+Concurrency.swift 0.00% <ø> (ø)
Sources/Redis/RedisClient+Concurrency.swift 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@0xTim 0xTim merged commit bc960cc into vapor:main Sep 12, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants