Redis wrapper for Node.js that transparently handles cluster, sentinel, or single-instance Redis connections. The package is in maintenance mode (v1.0.13) with no recent updates. It auto-detects Redis configuration and provides a unified interface, but lacks official TypeScript types and has limited documentation. Alternatives like ioredis offer broader support and active maintenance.
npm install redis-sharelatexNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Redis client with auto-detection (cluster/sentinel/single) and performs basic set/get operations.
Upgrade Node.js to version 10 or later.
Consider migrating to ioredis for active development and TypeScript support.
Create a .d.ts file or use @types/redis-sharelatex if available.
Ensure port is a number: parseInt(process.env.REDIS_PORT ?? '6379').
Check version compatibility; pin redis dependency if needed.
Ensure package is installed: npm install redis-sharelatex. Use CommonJS require if using ESM.
Start Redis server or verify connection settings.
Ensure password is properly URL-encoded or passed as string.
Set REDIS_SENTINELS environment variable or pass sentinels array in options.