A simple and reusable Redis client wrapper using ioredis
, designed for Node.js applications.
Configure the Redis connection using the following environment variables:
Variable | Description | Default |
---|---|---|
APP_REDIS_HOST |
Redis server hostname | 127.0.0.1 |
APP_REDIS_PORT |
Redis server port | 6379 |
APP_REDIS_USERNAME |
Redis username (if required) | (none) |
APP_REDIS_PASSWORD |
Redis password (if required) | (none) |
pnpm add @moxalibudbud/redis
# or
npm install @moxalibudbud/redis