Skip to content

Swift 6.1 async/await support for SCAN and other commands #129

@nysander

Description

@nysander

Problem

RediStack 1.6.2 does not support async/await for SCAN and other commands, which blocks full adoption of Swift 6.1 concurrency and modern async patterns in server-side Swift applications. The lack of async/await support for SCAN means fallback and cache search logic cannot be implemented in a scalable, non-blocking way. Workarounds (such as sync helpers) are not compatible with Swift concurrency rules and can introduce thread-safety and performance issues.

Why This Matters

  • Many developers want to use async/await throughout their codebase for clarity, safety, and performance
  • Non-blocking Redis operations are essential for scalable, modern Swift server applications
  • SCAN is required for efficient cache/fallback lookups; blocking or sync workarounds are not acceptable for production
  • Swift 6.1+ adoption is blocked without proper async/await support

Request

  • Add async/await support for SCAN and other Redis commands
  • Ensure compatibility with Swift 6.1+ concurrency rules
  • Provide migration path from sync to async APIs
  • Document any breaking changes

Environment

  • Swift 6.1+
  • RediStack 1.6.2
  • Server-side Swift applications

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions