Redis package for the BIL monorepo. Provides a pre-configured Redis client for caching and session storage.
import redis from "@mayson/redis";// Set a valueawait redis.set("key", "value");// Get a valueconst value = await redis.get("key");// Set with expiration (seconds)await redis.setex("key", 3600, "value"); Copy
import redis from "@mayson/redis";// Set a valueawait redis.set("key", "value");// Get a valueconst value = await redis.get("key");// Set with expiration (seconds)await redis.setex("key", 3600, "value");
Redis package for the BIL monorepo. Provides a pre-configured Redis client for caching and session storage.
Example