1
2
3
4
5
6
7
8
import { Redis } from "npm:@upstash/redis";
const redis = new Redis({
url: Deno.env.get("upstashValtownUrl"),
token: Deno.env.get("upstashValtownToken"),
});
console.log(await redis.set("foo", "bar"));
console.log(await redis.get("foo"));
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
September 2, 2024