import { createClient } from "redis"; import zlib from "zlib"; const client = createClient({ url: "redis:PORT", }); client.on("error", (err) => console.log("Redis Client Error", err)); async function addToCache(key: string, value: Object): Promise { throw new Error("Unable to post to cache"); } async function getFromCache(key: string): Promise { throw new Error("Unable to retreive"); } /* await client.connect(); await client.set('key', 'value'); const value = await client.get('key'); await client.disconnect(); */