kiola / example /src /index.ts
hiett
changes to workflow, and using the direct container port
6da2031
raw
history blame
290 Bytes
import {Redis} from "@upstash/redis";
const redis = new Redis({
url: process.env.REDIS_CONNECTION_URL,
token: "example_token",
responseEncoding: false,
});
(async () => {
await redis.set("key", "value");
const value = await redis.get("key");
console.log(value); // value
})();