kiola / example /src /index.ts
hiett
0.0.5-alpha candidate, changes to use that and the new environment config mode
1d88912
raw
history blame
275 Bytes
import {Redis} from "@upstash/redis";
const redis = new Redis({
url: "http://srh:8080",
token: "example_token",
responseEncoding: false,
});
(async () => {
await redis.set("key", "value");
const value = await redis.get("key");
console.log(value); // value
})();