Refactor redis file
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)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Upstash
A Upstash library compatible with all Apple platforms, Swift Cloud and Fastly Compute@Edge
Usage
Create a Client
GET
SET
EXEC