Tedis is a TypeScript-based Redis client for Node.js, supporting async/await with full TypeScript definitions. Version 0.1.2 (latest) offers both ESM and CJS support with a promise-based API. It provides a connection pool (TedisPool) and direct commands via Tedis.command(). Compared to ioredis, it is simpler and more lightweight, but lacks cluster support and advanced features. Development appears to be in early stages with low release cadence.
npm install redis-typescriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a single connection and a connection pool, performs SET/GET commands, then gracefully closes connections.
Use `await tedis.command('SET', 'key', 'value')` or `await tedis.set('key', 'value')` for string commands.Always use `password` field in options; `auth_pass` is not supported.
Wrap connection code in try-catch or use .catch() on the promise.
Always call pool.putTedis(conn) in a finally block or use a wrapper.
Parse numbers manually or use simple get/set for numbers.
Use named import: import { Tedis } from 'tedis'Start Redis server or check host/port configuration.
Ensure Tedis instance is created correctly and connection is open before calling methods.
Pass password in constructor options: new Tedis({ password: 'your_pass' })No dependency data recorded yet.