cupertino-packages/swift-server/RediStack
Mihaela Mihaljevic 717311488d data(packages): initial import, 2026-05-27
Per-owner per-repo Swift package source trees, extracted from
codeload.github.com tarballs by `cupertino fetch --source
packages --skip-metadata`. 12 owners covering 137 seed packages
plus transitive dependencies discovered via Package.swift walks
at raw.githubusercontent.com.

Lifted from cupertino-docs/packages/ subtree
(cupertino-docs@26fc51c92). The subtree is being removed from
cupertino-docs in a follow-up commit so per-source-corpus repos
stay separable.

326 MB total, 1 fetch error (logged at fetch time, not blocking
indexer).
2026-05-27 11:35:02 +02:00
..
.gitlab data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
docs/api-design data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
scripts data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
Sources data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
Tests data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
.archive.tar.gz data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
.spi.yml data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
.yamllint.yml data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
CHANGELOG.md data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
CODE_OF_CONDUCT.md data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
CONTRIBUTING.md data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
CONTRIBUTORS.txt data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
dev.docker-compose.yml data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
LICENSE.txt data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
manifest.json data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
NOTICE.txt data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
Package.swift data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00
README.md data(packages): initial import, 2026-05-27 2026-05-27 11:35:02 +02:00

RediStack

SSWG Sandbox Incubating Badge Documentation MIT License

RediStack (pronounced like "ready stack") is a non-blocking Swift client for Redis built on top of SwiftNIO.

The GitLab repository is a read-only mirror of the GitHub repository. For issues and pull requests, please visit GitHub.

Introduction

It communicates over the network using Redis' Redis Seralization Protocol (RESP2).

This library is primarily developed for Redis v5, but is backwards compatible to Redis v3.

Installing

To install RediStack, just add the package as a dependency in your Package.swift.

dependencies: [
    .package(url: "https://github.com/swift-server/RediStack.git", from: "1.6.2")
]

Getting Started

RediStack is quick to use - all you need is an EventLoop from SwiftNIO.

import NIOCore
import NIOPosix
import RediStack

let eventLoop: EventLoop = NIOSingletons.posixEventLoopGroup.any()
let connection = RedisConnection.make(
    configuration: try .init(hostname: "127.0.0.1"),
    boundEventLoop: eventLoop
).wait()

let result = try connection.set("my_key", to: "some value")
    .flatMap { return connection.get("my_key") }
    .wait()

print(result) // Optional("some value")

Note: Use of wait() was used here for simplicity. Never call this method on an eventLoop!

Documentation

The docs for the latest tagged release are always available at the Swift Package Index.

Questions

For bugs or feature requests, file a new issue.

Changelog

SemVer changes are documented for each release on the releases page.

Contributing

Check out CONTRIBUTING.md for more information on how to help with RediStack.

Contributors

Check out CONTRIBUTORS.txt to see the full list. This list is updated for each release.

Swift on Server Ecosystem

RediStack is part of the Swift on Server Working Group ecosystem - currently recommended as Sandbox Maturity.

Proposal Pitch Discussion Review Vote
SSWG-0004 2019-01-07 2019-04-01 2019-06-09 2019-06-27

Language and Platform Support

Any given release of RediStack will support at least the latest version of Swift on a given platform plus 2 previous versions, at the time of the release.

Major version releases will be scheduled around official Swift releases, taking no longer 3 months from the Swift release.

Major version releases will drop support for any version of Swift older than the last 3 Swift versions.

This policy is to balance the desire for as much backwards compatibility as possible, while also being able to take advantage of new Swift features for the best API design possible.

License

Apache 2.0

Copyright (c) 2019-present, Nathan Harris (@mordil)

This project contains code written by others not affliated with this project. All copyright claims are reserved by them. For a full list, with their claimed rights, see NOTICE.txt

Redis is a registered trademark of Redis Labs. Any use of their trademark is under the established trademark guidelines and does not imply any affiliation with or endorsement by them, and all rights are reserved by them.

Swift is a registered trademark of Apple, Inc. Any use of their trademark does not imply any affiliation with or endorsement by them, and all rights are reserved by them.