<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt" -->

---
title: Valkey · Introducing valkey-swift, the Swift client for...
description: A preview release introduces valkey-swift, a new Swift client library for Valkey built with Swift concurrency. It offers a strongly typed API, connection...
canonical: https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Valkey · Introducing valkey-swift, the Swift client for Valkey | daily.dev
og:description: A preview release introduces valkey-swift, a new Swift client library for Valkey built with Swift concurrency. It offers a strongly typed API, connection...
og:url: https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt
og:image: https://api.daily.dev/og/posts/baxJVdXYt.png
og:image:alt: Valkey · Introducing valkey-swift, the Swift client for Valkey
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Valkey · Introducing valkey-swift, the Swift client for Valkey

**[Valkey](https://daily.dev/sources/valkey-blog)** · 7 min read · 0 upvotes · 0 comments

## Summary

A preview release introduces valkey-swift, a new Swift client library for Valkey built with Swift concurrency. It offers a strongly typed API, connection pooling, code-generated command coverage across all Valkey data types, pipelining via execute() and structured concurrency, pub/sub subscriptions modeled as AsyncSequence, and a cluster client supporting topology discovery, hashslot routing, MOVED error handling, and circuit breaking. The post also walks through installing Swift, adding the package, and writing a simple get/set example.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://valkey.io/blog/valkey-swift>

## Questions this post answers

### Is there an official Swift client for Valkey?

Yes, valkey-swift is a preview-release Swift client library for Valkey built with Swift concurrency in mind. It provides a strongly typed API, a persistent connection pool, code-generated support for all Valkey commands (strings, lists, sets, sorted sets, streams, hashes, geospatial, hyperloglog, pub/sub), pipelining, and a cluster client with hashslot-based routing and failover.

_Developers evaluating Swift database clients can track new library releases like this one on daily.dev._

### How does pipelining work in valkey-swift?

Valkey-swift supports pipelining two ways: the execute() function on ValkeyClient or ValkeyConnection sends multiple commands at once and returns a tuple of typed responses, or Swift Concurrency task groups can send commands individually and concurrently over a ValkeyConnection actor without waiting for each response, avoiding round-trip delays between commands.

_Teams optimizing Valkey performance in Swift apps can follow client updates on daily.dev._

### What features does the ValkeyClusterClient support in valkey-swift?

The ValkeyClusterClient in valkey-swift supports election-based cluster topology discovery and maintenance, command routing based on key hashslots, handling of MOVED errors during resharding, connection pooling with failover, and circuit breaking during cluster disruptions. Multi-key commands require all keys to reside on the same shard.

_Developers building on Valkey Cluster can keep up with client capabilities via daily.dev._

## Similar posts on daily.dev

- [Valkey 9.0 Debuts Multidatabase Clustering for Massive-Scale Workloads](https://daily.dev/posts/valkey-9-0-debuts-multidatabase-clustering-for-massive-scale-workloads-bmxbj7zgl) · The New Stack · 14 upvotes · 0 comments
- [Using Valkey on Azure and in .NET Aspire](https://daily.dev/posts/using-valkey-on-azure-and-in-net-aspire-8hoh4cisd) · InfoWorld · 0 upvotes · 0 comments
- [Valkey 9.1 Delivers More Performance & Enhanced Security](https://daily.dev/posts/valkey-9-1-delivers-more-performance-enhanced-security-9lzgcvzst) · Phoronix · 0 upvotes · 0 comments
- [\[Video Podcast\] Improving Valkey with Madelyn Olson](https://daily.dev/posts/video-podcast-improving-valkey-with-madelyn-olson-bjpwcn9zl) · InfoQ · 0 upvotes · 0 comments
- [Valkey just had a 17x year. Its lead maintainer still doesn’t want Redis to die.](https://daily.dev/posts/valkey-just-had-a-17x-year-its-lead-maintainer-still-doesn-t-want-redis-to-die--hymzgle9p) · The New Stack · 2 upvotes · 0 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#swift](https://daily.dev/tags/swift), [#redis](https://daily.dev/tags/redis), [#valkey](https://daily.dev/tags/valkey)

[View this post on daily.dev](https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Valkey · Introducing valkey-swift, the Swift client for Valkey","url":"https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt"},"datePublished":"2026-08-23T12:23:13.430Z","dateModified":"2026-08-23T12:49:00.649Z","description":"A preview release introduces valkey-swift, a new Swift client library for Valkey built with Swift concurrency. It offers a strongly typed API, connection...","image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","thumbnailUrl":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","isAccessibleForFree":true,"articleSection":"Valkey","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Valkey","logo":"https://media.daily.dev/image/upload/s--XXPzEmD8--/f_auto,q_auto/v1787487496/logos/valkey-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/valkey-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"backend,swift,redis,valkey","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Valkey","item":"https://daily.dev/sources/valkey-blog"},{"@type":"ListItem","position":3,"name":"Valkey · Introducing valkey-swift, the Swift client for Valkey"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/valkey-introducing-valkey-swift-the-swift-client-for-valkey-baxjvdxyt#faq","mainEntity":[{"@type":"Question","name":"Is there an official Swift client for Valkey?","acceptedAnswer":{"@type":"Answer","text":"Yes, valkey-swift is a preview-release Swift client library for Valkey built with Swift concurrency in mind. It provides a strongly typed API, a persistent connection pool, code-generated support for all Valkey commands (strings, lists, sets, sorted sets, streams, hashes, geospatial, hyperloglog, pub/sub), pipelining, and a cluster client with hashslot-based routing and failover. Developers evaluating Swift database clients can track new library releases like this one on daily.dev."}},{"@type":"Question","name":"How does pipelining work in valkey-swift?","acceptedAnswer":{"@type":"Answer","text":"Valkey-swift supports pipelining two ways: the execute() function on ValkeyClient or ValkeyConnection sends multiple commands at once and returns a tuple of typed responses, or Swift Concurrency task groups can send commands individually and concurrently over a ValkeyConnection actor without waiting for each response, avoiding round-trip delays between commands. Teams optimizing Valkey performance in Swift apps can follow client updates on daily.dev."}},{"@type":"Question","name":"What features does the ValkeyClusterClient support in valkey-swift?","acceptedAnswer":{"@type":"Answer","text":"The ValkeyClusterClient in valkey-swift supports election-based cluster topology discovery and maintenance, command routing based on key hashslots, handling of MOVED errors during resharding, connection pooling with failover, and circuit breaking during cluster disruptions. Multi-key commands require all keys to reside on the same shard. Developers building on Valkey Cluster can keep up with client capabilities via daily.dev."}}]}
```

