Skip to content

A Upstash client compatible with Swift Cloud and Fastly Compute@Edge

License

Notifications You must be signed in to change notification settings

swift-cloud/Upstash

Repository files navigation

Upstash

A Upstash library compatible with all Apple platforms, Swift Cloud and Fastly Compute@Edge

Usage

Create a Client

let client = RedisClient(hostname: "my-host-12345.upstash.io", token: "...")

GET

let visits = try await client.get("visits").decode(Int.self)

SET

try await client.set("visits", 10)

EXEC

let visits = try await client.exec("incr", "visits").decode(Int.self)

About

A Upstash client compatible with Swift Cloud and Fastly Compute@Edge

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages