A TypeScript-first Redis client built on redis-om that adds advanced persistence management (RDB, AOF) and transaction support with entity versioning. Current version 1.0.1 provides simplified Redis interactions with robust error handling, configurable save strategies, and atomic transaction lifecycle management. It differentiates from raw redis-om by offering a higher-level API for persistence configuration and transaction rollback, and from node-redis by focusing on entity management and persistence patterns for applications needing durable Redis storage.
npm install redis-enhancedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates connecting to Redis, setting RDB persistence, and performing a transactional save with rollback.
Upgrade Redis server to version 6.0 or higher.
Call connect() once and reuse the same client instance.
Remove password field if using default user; otherwise set username/password in url like `redis://user:pass@localhost:6379`.
Do not modify the __v key directly. Let the library manage versions.
Ensure you are on the correct redis database before calling flushDb(). Use SELECT or separate client instances for different namespaces.
Use named import: `import { EnhancedRedisClient } from 'redis-enhanced'`Start Redis server with `redis-server` or adjust the url configuration.
Await client.connect() before using any manager methods.