A Upstash library compatible with all Apple platforms, Swift Cloud and Fastly Compute@Edge
let client = RedisClient(hostname: "my-host-12345.upstash.io", token: "...")
let visits = try await client.get("visits").decode(Int.self)
try await client.set("visits", 10)
let visits = try await client.exec("incr", "visits").decode(Int.self)