import Redis from "ioredis";
export const redis = new Redis(process.env.REDIS_URL ?? "redis://localhost:6379");
export interface Codec<T> {
encode(value: T): string;
package pricecache
import (
"context"
"sync"
import asyncio
from typing import Awaitable, Callable, Dict, TypeVar
T = TypeVar("T")